Last active
December 9, 2015 07:46
-
-
Save hackugyo/5018e4df385db0bd00ab to your computer and use it in GitHub Desktop.
Androidでstatic finalなインスタンスが複雑な場合、こうやって初期化する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static final String AUTH_TOKEN_TYPE; | |
static { | |
StringBuilder sb = new StringBuilder(); | |
sb.append("oauth2:"); | |
for (String scope : AUTH_SCOPES) { | |
sb.append(scope); | |
sb.append(" "); | |
} | |
AUTH_TOKEN_TYPE = sb.toString(); | |
} | |
// staticなインスタンスが複雑な場合、こうやって初期化する |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment