Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[TRACKING] breaking changes with API changes to consider with v2

未关闭
#872 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
重构
描述清晰度
需要澄清
活跃度
停滞
技术栈
java

调研方向

未指定文件或测试。首先检查 OpenFeatureClient、Hook、HookContext 和 FlagEvaluationDetails 公共 API,然后跟踪数值评估和对象创建的实现方式。完成标准是,列表中的每项 breaking change 决策都已解决并实现,并且由此产生的 release 已标记为下一个 major version。

由索引模型根据 Issue 内容生成。

描述

This is a tracking issue with breaking changes such as @Deprecated annotated methods.

The resulting PR should be marked with breaking changes so that we can upgrade to the next major version (2.x)

List of tasks,

  • public OpenFeatureClient : remove public access and make interna
  • consider using Number for numeric evaluations
  • rethink lombok and object creation
  • Add a method to the Hook interface, through which the user can add hook data that can be accessed in a type safe manner during the flag evaluation:
class MyHook implements Hook<T,D>{
   D getHookData(){
      return myHookData;
   }

   void void after(HookContext<T> ctx, FlagEvaluationDetails<T> details, Map<String, Object> hints) {}
      D data = ctx.getHookData(); // data == myHookData
   }
}

主要语言
Java
星标
128
派生
61
平均合并
11 小时 36 分钟
30 天内合并 PR
22

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

open-feature/java-sdk 的其他 Issue

查看 open-feature/java-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。