You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"summary": "This commit removes the \u0027substring matching\u0027 preference from the JDT UI and replaces its usage in internal code with a direct access to a new static boolean flag (`JavaManipulationPlugin.CODEASSIST_SUBSTRING_MATCH_ENABLED`). This is a direct 1:1 expression replacement, simplifying internal preference lookup logic, and is fully implementable as a GREEN TriggerPattern DSL rule for internal JDT refactoring.",
"summary": "This commit updates internal Eclipse JDT UI code to reflect the standardization of Text Blocks in Java 15. It replaces calls to `PreviewFeaturesSubProcessor.isPreviewFeatureEnabled()` with `JavaModelUtil.is15OrHigher()`. This is a direct 1:1 method call replacement, modernizing how JDT internally checks for Java 15 capabilities. This is fully implementable as a GREEN TriggerPattern DSL rule for internal JDT refactoring, guarded by `sourceVersionGE(15)`.",
"summary": "This commit fixes Bug 563209 by providing a quick fix to replace `return` statements with `yield` statements inside switch expressions. This is a direct 1:1 statement replacement, where `return $expr;` becomes `yield $expr;`. This transformation is a core modernization for Java 14+ Switch Expressions, improving code conciseness and aligning with modern Java idioms. The TriggerPattern DSL can directly express this pattern as a statement-level replacement, guarded by `sourceVersionGE(14)` to ensure compatibility with Java 14 and later. The proposed rule would automate this change, effectively replacing parts of the imperative Java quick-fix logic.",
"summary": "This commit fixes Bug 563285, a ClassCastException in `InitializeFinalFieldProposal`, by widening a cast from `(TypeDeclaration)` to `(AbstractTypeDeclaration)`. This change allows the internal code to correctly handle `EnumDeclaration`s, which are `AbstractTypeDeclaration`s but not `TypeDeclaration`s. This is a direct 1:1 expression replacement of a cast. The TriggerPattern DSL can implement this as a GREEN rule by matching the specific cast pattern and replacing the target type, using an `inClass` guard to ensure it applies only within the problematic internal JDT class. The DSL also implicitly handles import management for `AbstractTypeDeclaration`.",
"summary": "This commit replaces `java.util.Objects.equals()` with `java.util.Arrays.equals()` when comparing two array-type expressions within `VarCleanUp.java`. Using `Objects.equals()` for arrays only performs reference equality, which is almost always a bug when comparing array contents. `Arrays.equals()` performs element-wise comparison, which is the semantically correct approach. This is a highly reusable pattern for fixing a common correctness bug and improving code clarity. The transformation is a direct 1:1 expression replacement, with `instanceof` guards ensuring that both arguments are indeed array types. `Arrays.equals()` has existed since Java 1.5 and `Objects.equals()` since Java 7, so for a Java 8 baseline, no `sourceVersionGE` guard is needed in the rule itself. This pattern is fully expressible in the TriggerPattern DSL and is classified as GREEN, suitable for the `arrays.sandbox-hint` file.",
"summary": "This commit fixes a UI layout bug in JDT\u0027s `OptionsConfigurationBlock` by changing a literal integer value (`-2` to `4`) within a ternary expression. This is a direct 1:1 replacement of a literal value within an expression, which is fully supported and can be automated as a GREEN TriggerPattern DSL rule. The rule is specific to an internal Eclipse UI class and therefore has low reusability outside of Eclipse development.",
Copy file name to clipboardExpand all lines: sandbox_common_core/src/main/resources/org/sandbox/jdt/triggerpattern/internal/jdt-internal-refactoring.sandbox-hint
0 commit comments