1package com.google.googlejavaformat.java.test; 2 3/** 4 * Tests for SimpleNames, SimpleTypes, SingleMemberAnnotations, SingleVariableDeclarations, 5 * Statements, StringLiterals, SuperConstructorInvocations, SuperFieldAccesses, 6 * SuperMethodInvocations, SuperMethodReferences, SwitchCases, SwitchStatements, and 7 * SynchronizedStatements. 8 */ 9class S { 10 // TODO(jdd): Add tests for higher language levels. 11 12 int x = 0; 13 14 @SingleMemberAnnotation( 15 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 16 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0) 17 S() { 18 super(); 19 } 20 21 class SS extends S { 22 SS() { 23 super(); 24 super.x = 0; 25 super.foo(); 26 } 27 } 28 29 void foo() { 30 Object[] object = null; 31 synchronized ( 32 object[ 33 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 34 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0]) { 35 switch ("abc") { 36 case "one": 37 break; 38 case "two": 39 break; 40 case "three": 41 default: 42 break; 43 } 44 } 45 } 46} 47