Skip to content

Remove 197 auto-generated TODO stub comments #10

Description

@LSantha

Description

There are 197 occurrences of // TODO Auto-generated method stub comments throughout the codebase. These are auto-generated IDE comments that provide no value in a committed codebase and should be removed.

Scope

  • 197 total occurrences across multiple files
  • Most common in GUI/swing peer implementations
  • Also found in test files and other packages

Examples of Affected Files

  • gui/src/awt/org/jnode/awt/swingpeers/SwingScrollPanePeer.java (6 occurrences)
  • gui/src/awt/org/jnode/awt/swingpeers/DesktopFrame.java
  • gui/src/awt/org/jnode/awt/swingpeers/SwingTextFieldPeer.java
  • gui/src/awt/org/jnode/awt/swingpeers/SwingTextComponentPeer.java
  • Many other files

Task

For each occurrence:

  1. Delete the // TODO Auto-generated method stub comment line
  2. Keep the method body (stub implementation or UnsupportedOperationException) unchanged
  3. Verify the code compiles after changes

Example Fix

// Before:
public void someMethod() {
    // TODO Auto-generated method stub
    throw new UnsupportedOperationException();
}

// After:
public void someMethod() {
    throw new UnsupportedOperationException();
}

Verification

Run sh build.sh assemble to verify compilation before committing.

Difficulty

Easy - Just deleting comment lines, no code logic changes. Can be done with find-and-replace.

Benefits

  • Cleaner code
  • Removes noise from the codebase
  • No functional changes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions