mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
[cleanup] erefactor/EclipseJdt - Invert equals arguments if parameter is constant string
EclipseJdt cleanup 'InvertEquals' applied by erefactor. For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php For erefactor see https://github.com/cal101/erefactor
This commit is contained in:
@@ -387,7 +387,7 @@ public class HttpRequest extends HttpBase<HttpRequest> {
|
||||
public boolean isKeepAlive() {
|
||||
String connection = header(Header.CONNECTION);
|
||||
if (connection == null) {
|
||||
return !httpVersion.equalsIgnoreCase(HTTP_1_0);
|
||||
return !HTTP_1_0.equalsIgnoreCase(httpVersion);
|
||||
}
|
||||
|
||||
return false == "close".equalsIgnoreCase(connection);
|
||||
|
@@ -109,7 +109,7 @@ public class Platform extends UserAgentInfo {
|
||||
* @since 5.2.3
|
||||
*/
|
||||
public boolean isIPhoneOrIPod() {
|
||||
return IPHONE.equals(this) || IPOD.equals(this);
|
||||
return this.equals(IPHONE) || this.equals(IPOD);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,7 +119,7 @@ public class Platform extends UserAgentInfo {
|
||||
* @since 5.2.3
|
||||
*/
|
||||
public boolean isIPad() {
|
||||
return IPAD.equals(this);
|
||||
return this.equals(IPAD);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -139,7 +139,7 @@ public class Platform extends UserAgentInfo {
|
||||
* @since 5.2.3
|
||||
*/
|
||||
public boolean isAndroid() {
|
||||
return ANDROID.equals(this) || GOOGLE_TV.equals(this);
|
||||
return this.equals(ANDROID) || this.equals(GOOGLE_TV);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user