Skip to content

Commit

Permalink
Remove redundant methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ebyhr committed Dec 30, 2023
1 parent fae2c1d commit 437d2d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,53 +36,4 @@ public void setManagedApps(List<String> managedApps)
{
this.managedApps = managedApps;
}

public String toString()
{
return "AppConfiguration(modules=" + this.getModules() + ", managedApps=" + this.getManagedApps() + ")";
}

public boolean equals(final Object o)
{
if (o == this) {
return true;
}
if (!(o instanceof AppConfiguration)) {
return false;
}
final AppConfiguration other = (AppConfiguration) o;
if (!other.canEqual((Object) this)) {
return false;
}
if (!super.equals(o)) {
return false;
}
final Object thisModules = this.getModules();
final Object otherModules = other.getModules();
if (thisModules == null ? otherModules != null : !thisModules.equals(otherModules)) {
return false;
}
final Object thisManagedApps = this.getManagedApps();
final Object otherManagedApps = other.getManagedApps();
if (thisManagedApps == null ? otherManagedApps != null : !thisManagedApps.equals(otherManagedApps)) {
return false;
}
return true;
}

protected boolean canEqual(final Object other)
{
return other instanceof AppConfiguration;
}

public int hashCode()
{
final int prime = 59;
int result = super.hashCode();
final Object modules = this.getModules();
result = result * prime + (modules == null ? 43 : modules.hashCode());
final Object managedApps = this.getManagedApps();
result = result * prime + (managedApps == null ? 43 : managedApps.hashCode());
return result;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,134 +171,4 @@ public void setResponseBufferSize(int responseBufferSize)
{
this.responseBufferSize = responseBufferSize;
}

public boolean equals(final Object o)
{
if (o == this) {
return true;
}
if (!(o instanceof ProxyServerConfiguration)) {
return false;
}
final ProxyServerConfiguration other = (ProxyServerConfiguration) o;
if (!other.canEqual((Object) this)) {
return false;
}
final Object thisName = this.getName();
final Object otherName = other.getName();
if (thisName == null ? otherName != null : !thisName.equals(otherName)) {
return false;
}
if (this.getLocalPort() != other.getLocalPort()) {
return false;
}
final Object thisProxyTo = this.getProxyTo();
final Object otherProxyTo = other.getProxyTo();
if (thisProxyTo == null ? otherProxyTo != null : !thisProxyTo.equals(otherProxyTo)) {
return false;
}
final Object thisPrefix = this.getPrefix();
final Object otherPrefix = other.getPrefix();
if (thisPrefix == null ? otherPrefix != null : !thisPrefix.equals(otherPrefix)) {
return false;
}
final Object thisTrustAll = this.getTrustAll();
final Object otherTrustAll = other.getTrustAll();
if (thisTrustAll == null ? otherTrustAll != null : !thisTrustAll.equals(otherTrustAll)) {
return false;
}
final Object thisPreserveHost = this.getPreserveHost();
final Object otherPreserveHost = other.getPreserveHost();
if (thisPreserveHost == null ? otherPreserveHost != null : !thisPreserveHost.equals(otherPreserveHost)) {
return false;
}
if (this.isSsl() != other.isSsl()) {
return false;
}
final Object thisKeystorePath = this.getKeystorePath();
final Object otherKeystorePath = other.getKeystorePath();
if (thisKeystorePath == null ? otherKeystorePath != null : !thisKeystorePath.equals(otherKeystorePath)) {
return false;
}
final Object thisKeystorePass = this.getKeystorePass();
final Object otherKeystorePass = other.getKeystorePass();
if (thisKeystorePass == null ? otherKeystorePass != null : !thisKeystorePass.equals(otherKeystorePass)) {
return false;
}
if (this.isForwardKeystore() != other.isForwardKeystore()) {
return false;
}
if (this.getOutputBufferSize() != other.getOutputBufferSize()) {
return false;
}
if (this.getRequestHeaderSize() != other.getRequestHeaderSize()) {
return false;
}
if (this.getResponseHeaderSize() != other.getResponseHeaderSize()) {
return false;
}
if (this.getRequestBufferSize() != other.getRequestBufferSize()) {
return false;
}
if (this.getResponseBufferSize() != other.getResponseBufferSize()) {
return false;
}
return true;
}

protected boolean canEqual(final Object other)
{
return other instanceof ProxyServerConfiguration;
}

public int hashCode()
{
final int prime = 59;
int result = 1;
final Object name = this.getName();
result = result * prime + (name == null ? 43 : name.hashCode());
result = result * prime + this.getLocalPort();
final Object proxyTo = this.getProxyTo();
result = result * prime + (proxyTo == null ? 43 : proxyTo.hashCode());
final Object prefix = this.getPrefix();
result = result * prime + (prefix == null ? 43 : prefix.hashCode());
final Object trustAll = this.getTrustAll();
result = result * prime + (trustAll == null ? 43 : trustAll.hashCode());
final Object preserveHost = this.getPreserveHost();
result = result * prime + (preserveHost == null ? 43 : preserveHost.hashCode());
result = result * prime + (this.isSsl() ? 79 : 97);
final Object keystorePath = this.getKeystorePath();
result = result * prime + (keystorePath == null ? 43 : keystorePath.hashCode());
final Object keystorePass = this.getKeystorePass();
result = result * prime + (keystorePass == null ? 43 : keystorePass.hashCode());
result = result * prime + (this.isForwardKeystore() ? 79 : 97);
result = result * prime + this.getOutputBufferSize();
result = result * prime + this.getRequestHeaderSize();
result = result * prime + this.getResponseHeaderSize();
result = result * prime + this.getRequestBufferSize();
result = result * prime + this.getResponseBufferSize();
return result;
}

@Override
public String toString()
{
return "ProxyServerConfiguration{" +
"name='" + name + '\'' +
", localPort=" + localPort +
", proxyTo='" + proxyTo + '\'' +
", prefix='" + prefix + '\'' +
", trustAll='" + trustAll + '\'' +
", preserveHost='" + preserveHost + '\'' +
", ssl=" + ssl +
", keystorePath='" + keystorePath + '\'' +
", keystorePass='" + keystorePass + '\'' +
", forwardKeystore=" + forwardKeystore +
", outputBufferSize=" + outputBufferSize +
", requestHeaderSize=" + requestHeaderSize +
", responseHeaderSize=" + responseHeaderSize +
", requestBufferSize=" + requestBufferSize +
", responseBufferSize=" + responseBufferSize +
'}';
}
}

0 comments on commit 437d2d9

Please sign in to comment.