Polish 'Simplify conditionals'

See gh-39259
This commit is contained in:
Phillip Webb
2024-01-23 08:54:52 -08:00
parent 65a1ff84e6
commit ddb769bf7f
7 changed files with 17 additions and 10 deletions

View File

@@ -207,7 +207,7 @@ final class JarUrlConnection extends java.net.JarURLConnection {
@Override
public boolean getAllowUserInteraction() {
return this.jarFileConnection != null && this.jarFileConnection.getAllowUserInteraction();
return (this.jarFileConnection != null) && this.jarFileConnection.getAllowUserInteraction();
}
@Override
@@ -219,7 +219,7 @@ final class JarUrlConnection extends java.net.JarURLConnection {
@Override
public boolean getUseCaches() {
return this.jarFileConnection == null || this.jarFileConnection.getUseCaches();
return (this.jarFileConnection == null) || this.jarFileConnection.getUseCaches();
}
@Override
@@ -231,7 +231,7 @@ final class JarUrlConnection extends java.net.JarURLConnection {
@Override
public boolean getDefaultUseCaches() {
return this.jarFileConnection == null || this.jarFileConnection.getDefaultUseCaches();
return (this.jarFileConnection == null) || this.jarFileConnection.getDefaultUseCaches();
}
@Override