Skip to main content
Code Review

Return to Answer

Commonmark migration
Source Link

Only a short answer about Style

  • You should choose a coding style and after choosen you should stick to it. Right now you have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

    You should choose a coding style and after choosen you should stick to it. Right now you have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

    I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

  • Commented code is dead code and should be removed. If you need to know such stuff you should use a code revision system like svn/git

  • If you are using Java >= 7 you should use the diamond operator like so

     List<String> names = new ArrayList<>();
    

Only a short answer about Style

  • You should choose a coding style and after choosen you should stick to it. Right now you have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

  • Commented code is dead code and should be removed. If you need to know such stuff you should use a code revision system like svn/git

  • If you are using Java >= 7 you should use the diamond operator like so

     List<String> names = new ArrayList<>();
    

Only a short answer about Style

  • You should choose a coding style and after choosen you should stick to it. Right now you have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

    I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

  • Commented code is dead code and should be removed. If you need to know such stuff you should use a code revision system like svn/git

  • If you are using Java >= 7 you should use the diamond operator like so

     List<String> names = new ArrayList<>();
    
deleted 1 character in body
Source Link
Heslacher
  • 50.9k
  • 5
  • 83
  • 177

Only a short answer about Style

  • You should choose a coding style and after choosen you should stick to it. Right now youryou have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

  • Commented code is dead code and should be removed. If you need to know such stuff you should use a code revision system like svn/git

  • If you are using Java >= 7 you should use the diamond operator like so

     List<String> names = new ArrayList<>();
    

Only a short answer about Style

  • You should choose a coding style and after choosen you should stick to it. Right now your have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

  • Commented code is dead code and should be removed. If you need to know such stuff you should use a code revision system like svn/git

  • If you are using Java >= 7 you should use the diamond operator like so

     List<String> names = new ArrayList<>();
    

Only a short answer about Style

  • You should choose a coding style and after choosen you should stick to it. Right now you have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

  • Commented code is dead code and should be removed. If you need to know such stuff you should use a code revision system like svn/git

  • If you are using Java >= 7 you should use the diamond operator like so

     List<String> names = new ArrayList<>();
    
Source Link
Heslacher
  • 50.9k
  • 5
  • 83
  • 177

Only a short answer about Style

  • You should choose a coding style and after choosen you should stick to it. Right now your have mixed styles, e.g sometimes you are using braces {} for single statement for loops and sometimes you omit them.

I would like to encourage you to always use them because omitting braces can lead to hidden and therefor hard to track bugs.

  • Commented code is dead code and should be removed. If you need to know such stuff you should use a code revision system like svn/git

  • If you are using Java >= 7 you should use the diamond operator like so

     List<String> names = new ArrayList<>();
    
lang-java

AltStyle によって変換されたページ (->オリジナル) /