Skip to content

Remove empty comment lines (//) from source files #11

@LSantha

Description

@LSantha

Description

Several source files contain empty comment lines consisting only of // with no text. These serve no purpose and should be removed to keep the code clean.

Affected Files (10 total)

  • builder/src/builder/org/jnode/linker/Elf.java (2 occurrences)
  • builder/src/builder/org/jnode/linker/Section.java (1 occurrence)
  • gui/src/awt/org/jnode/awt/font/truetype/TTFontProvider.java
  • gui/src/awt/org/jnode/awt/font/spi/AbstractFontProvider.java
  • gui/src/test/org/jnode/test/gui/Imageutil.java
  • distr/src/test/org/jnode/apps/jpartition/utils/device/DeviceUtils.java (3 occurrences)
  • core/src/core/org/jnode/vm/x86/compiler/l2/GenericX86CodeGenerator.java
  • core/src/core/org/jnode/vm/compiler/ir/IRTest.java
  • core/src/core/org/jnode/vm/compiler/ir/NativeTest.java
  • core/src/core/org/jnode/vm/compiler/ir/PrimitiveTest.java

Task

For each file:

  1. Find lines containing only // (with optional trailing whitespace)
  2. Delete these empty comment lines
  3. Verify the code compiles after changes

Example Fix

// Before:
public void someMethod() {
    //
    doSomething();
}

// After:
public void someMethod() {
    doSomething();
}

Verification

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

Difficulty

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

Benefits

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

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