Skip to content

Conversation

@eclipse-mylyn-bot
Copy link
Contributor

@eclipse-mylyn-bot eclipse-mylyn-bot commented Aug 16, 2025

The following cleanups were applied:

  • Add final modifier to private fields
  • Add missing '@Deprecated' annotations
  • Add missing '@Override' annotations
  • Add missing '@Override' annotations to implementations of interface methods
  • Convert control statement bodies to block
  • Make inner classes static where possible
  • Remove trailing white spaces on all lines
  • Remove unnecessary array creation for varargs
  • Remove unnecessary suppress warning tokens
  • Remove unused imports
  • Remove unused private constructors
  • Remove unused private fields
  • Remove unused private methods
  • Remove unused private types
  • Replace deprecated calls with inlined content where possible
  • Use pattern matching for instanceof

@github-actions
Copy link

github-actions bot commented Aug 16, 2025

Test Results

 1 545 files  ±0   1 545 suites  ±0   1h 9m 40s ⏱️ + 6m 59s
 5 006 tests ±0   4 949 ✅ ±0   57 💤 ±0  0 ❌ ±0 
14 450 runs  +2  14 279 ✅ +2  171 💤 ±0  0 ❌ ±0 

Results for commit 67fc5a6. ± Comparison against base commit d2efceb.

♻️ This comment has been updated with latest results.

@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from ca52f75 to 2eef70f Compare August 17, 2025 04:08
@ruspl-afed ruspl-afed force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from 2eef70f to b622adb Compare August 18, 2025 15:24
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch 3 times, most recently from 68338f3 to 2f8b6cf Compare August 22, 2025 04:10
@ruspl-afed ruspl-afed force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from 2f8b6cf to 24d1f3e Compare August 22, 2025 14:12
@BeckerFrank
Copy link
Contributor

We have failing tests for

@BeckerFrank
Copy link
Contributor

We have failing tests

  • testFromEmpty (org.eclipse.mylyn.gerrit.tests.core.client.rest.AbandonInputTest)
    expected:<{["message":""]}> but was:<{[]}>
  • testFromValid (org.eclipse.mylyn.gerrit.tests.core.client.rest.AbandonInputTest)
    expected:<{["message":"Whatever"]}> but was:<{[]}>
  • testFromEmpty (org.eclipse.mylyn.gerrit.tests.core.client.rest.RestoreInputTest)
    expected:<{["message":""]}> but was:<{[]}>
  • testFromValid (org.eclipse.mylyn.gerrit.tests.core.client.rest.RestoreInputTest)
    expected:<{["message":"Whatever"]}> but was:<{[]}>

Do you have any idea why JSonSupport().toJson(abandonInput) always returns the JSON structure {[]}?

@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch 3 times, most recently from f16fccd to 1b0beb9 Compare August 28, 2025 04:09
@BeckerFrank
Copy link
Contributor

I did a test with a mvn clean verify -B -Dmaven.repo.local=/Users/frank/eclipse_prod/.m2/repository -Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true on my Mac M1 environment and the AbandonInputTest and RestoreInputTest did not fail.
The divergence are that I use Java 24 and in the Github Job we have Java 21 on x86_64

Should I deactivate the two failing Test Classes?

@BeckerFrank
Copy link
Contributor

We have failing tests

  • testFromEmpty (org.eclipse.mylyn.gerrit.tests.core.client.rest.AbandonInputTest)
    expected:<{["message":""]}> but was:<{[]}>
  • testFromValid (org.eclipse.mylyn.gerrit.tests.core.client.rest.AbandonInputTest)
    expected:<{["message":"Whatever"]}> but was:<{[]}>
  • testFromEmpty (org.eclipse.mylyn.gerrit.tests.core.client.rest.RestoreInputTest)
    expected:<{["message":""]}> but was:<{[]}>
  • testFromValid (org.eclipse.mylyn.gerrit.tests.core.client.rest.RestoreInputTest)
    expected:<{["message":"Whatever"]}> but was:<{[]}>

Do you have any idea why JSonSupport().toJson(abandonInput) always returns the JSON structure {[]}?

The cleanup remove the private field message so there is no data needed to convert to a json String.
Should we generate the getter / setter methods to prevent the cleanup change?

BeckerFrank added a commit that referenced this pull request Aug 31, 2025
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch 2 times, most recently from 25c6bd3 to a5b94f6 Compare September 4, 2025 03:57
BeckerFrank added a commit that referenced this pull request Sep 10, 2025
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch 2 times, most recently from 394fe1a to f925a38 Compare September 15, 2025 04:16
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch 5 times, most recently from 7b0a138 to eca0bf1 Compare September 27, 2025 04:01
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from eca0bf1 to cde2f0b Compare September 29, 2025 04:18
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from cde2f0b to 1db8225 Compare October 8, 2025 12:40
@ruspl-afed ruspl-afed force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from 1db8225 to 9ddb0d1 Compare October 9, 2025 10:24
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from 9ddb0d1 to fb0ab0c Compare October 11, 2025 04:17
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch 2 times, most recently from b34463f to eaaa4fa Compare October 31, 2025 04:28
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch 3 times, most recently from 8218407 to 99871b2 Compare November 23, 2025 04:19
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from 99871b2 to 24e8c92 Compare November 24, 2025 04:23
@eclipse-mylyn-bot eclipse-mylyn-bot force-pushed the clean-code/mylyn.reviews/org.eclipse.mylyn.gerrit.core branch from 24e8c92 to 67fc5a6 Compare November 27, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants