package com.google.googlejavaformat.java.test; | |
/** | |
* Tests for ThisExpressions, ThrowStatements, TryStatements, TypeDeclarationStatements, | |
* TypeDeclarations, TypeLiterals, TypeMethodReferences, TypeParameters, and Types. | |
*/ | |
class T<T1, T2, T3> { | |
// TODO(user): Add tests for higher language levels. | |
T f(int x) throws Exception { | |
class TT {} | |
if (x == 0 || T.class == null) { | |
return this; | |
} | |
try (AutoCloseable y = null) { | |
throw new RuntimeException(); | |
} | |
} | |
} |