|
http://www.jindent.com |
Previous: Comments
|
Next: JavaDocs
|
| Delete block comments |

/* ... */ and contain muliple comment lines.|
public class MyClass { int x, y, z; /* * some more declarations */ String a, b, c; ... } |
|
public class MyClass { int x, y, z; String a, b, c; ... } |
| Delete single-line comments |

/* ... */ and only contain one comment line.|
public class MyClass { int x, y, z; /* some more declarations */ String a, b, c; ... } |
|
public class MyClass { int x, y, z; String a, b, c; ... } |
| Delete end-of-line comments |

// ... and do not appear as trailing comments.|
public class MyClass { int x, y, z; // some more // declarations String a, b, c; ... } |
|
public class MyClass { int x, y, z; String a, b, c; ... } |
| Delete trailing comments |

|
public class MyClass { int x, y, z; // integer declarations String a, b, c; // String declarations ... } |
|
public class MyClass { int x, y, z; String a, b, c; ... } |
| Never delete comments beginning in first column |

|
public class MyClass { public void method() { /* long i = 0; while (i < n) { result *= i; i++; } */ doSomethingElse(); } } |
|
public class MyClass { public void method() { doSomethingElse(); } } |