What is the purpose of using square brackets in Java code comment?

前端 未结 3 1497
春和景丽
春和景丽 2021-01-21 08:27

I saw some Java code by Google using square bracket in comment.
For example:

// [START initialize_auth]
mAuth = FirebaseAuth.getInstance();
// [END initializ         


        
3条回答
  •  无人及你
    2021-01-21 08:47

    Probably they are using square brackets to match a set of characters for further reference. Internal tools used to automate the coding standard.

提交回复
热议问题