1
0

Use Checkstyle ParenPad

This commit is contained in:
Gary Gregory
2023-11-26 15:06:34 -05:00
parent 1290cecf73
commit 1a30b658bd
2 changed files with 18 additions and 19 deletions

View File

@@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
@@ -72,5 +71,6 @@ limitations under the License.
<property name="sortStaticImportsAlphabetically" value="true" />
</module>
<module name="WhitespaceAfter" />
<module name="ParenPad" />
</module>
</module>

View File

@@ -162,8 +162,7 @@ public class Jdk13LumberjackLogger implements Log, Serializable {
final PrintWriter printWriter = new PrintWriter(stringWriter);
throwable.printStackTrace(printWriter);
final String traceString = stringWriter.getBuffer().toString();
final StringTokenizer tokenizer =
new StringTokenizer( traceString, "\n" );
final StringTokenizer tokenizer = new StringTokenizer(traceString, "\n");
tokenizer.nextToken();
String line = tokenizer.nextToken();
while (!line.contains(this.getClass().getName())) {