Skip to content

Commit 4ab435e

Browse files
committed
codestyle
1 parent 31924b3 commit 4ab435e

File tree

1 file changed

+3
-7
lines changed
  • cloudplatform/connectivity-destination-service/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity

1 file changed

+3
-7
lines changed

cloudplatform/connectivity-destination-service/src/main/java/com/sap/cloud/sdk/cloudplatform/connectivity/DestinationService.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import javax.annotation.Nonnull;
1717
import javax.annotation.Nullable;
1818

19+
import lombok.Setter;
1920
import org.apache.commons.lang3.exception.ExceptionUtils;
2021

2122
import com.github.benmanes.caffeine.cache.Caffeine;
@@ -426,8 +427,8 @@ public static final class Cache
426427

427428
private static boolean cacheEnabled = true;
428429
private static boolean changeDetectionEnabled = true;
430+
@Setter
429431
private static boolean getAllDocumentsPrepended = false;
430-
// JONAS: put feature switch here
431432

432433
static {
433434
recreateSingleCache();
@@ -450,12 +451,7 @@ static boolean isGetAllDocumentsPrepended()
450451
return getAllDocumentsPrepended;
451452
}
452453

453-
public static void setGetAllDocumentsPrepended( boolean bool )
454-
{
455-
getAllDocumentsPrepended = bool;
456-
}
457-
458-
@Nonnull
454+
@Nonnull
459455
static com.github.benmanes.caffeine.cache.Cache<CacheKey, Destination> instanceSingle()
460456
{
461457
throwIfDisabled();

0 commit comments

Comments
 (0)