Polishing

This commit is contained in:
Juergen Hoeller
2024-08-13 19:34:30 +02:00
parent eff1ca92f0
commit b5377ee9cf
3 changed files with 19 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2023 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -393,7 +393,7 @@ public class CacheControl {
}
private void appendDirective(StringBuilder builder, String value) {
if (builder.length() > 0) {
if (!builder.isEmpty()) {
builder.append(", ");
}
builder.append(value);