<aside> 💡 해당 프로젝트에서는 자바 컨벤션에 대해서 이야기 합니다.

</aside>

기본적으로 네이버 컨벤션을 따르고 추가적으로 필요한 컨벤션을 정리하였습니다.

1. Naver VS Google


1.1. Tap Space


Naver

https://naver.github.io/hackday-conventions-java/#4-spaces-tab

Google

https://google.github.io/styleguide/javaguide.html#s4.2-block-indentation

Naver은 1탭을 사용하여 4개의 스페이스를 두며 Google은 2개의 스페이스를 둡니다.

public class Naver {
    private int i;
}

public class Google {
  private int i;
}

1.2. Line length


Naver

https://naver.github.io/hackday-conventions-java/#line-length-120

Google

https://google.github.io/styleguide/javaguide.html#s4.4-column-limit

1. 어노테이션