Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a6a8ae

Browse files
committed
minor clean up: dead code
1 parent2bfb2e2 commit9a6a8ae

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

‎client/src/main/java/org/asynchttpclient/Dsl.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public static Realm.Builder realm(Realm prototype) {
8585
returnnewRealm.Builder(prototype.getPrincipal(),prototype.getPassword())//
8686
.setRealmName(prototype.getRealmName())//
8787
.setAlgorithm(prototype.getAlgorithm())//
88-
.setMethodName(prototype.getMethodName())//
8988
.setNc(prototype.getNc())//
9089
.setNonce(prototype.getNonce())//
9190
.setCharset(prototype.getCharset())//

‎client/src/main/java/org/asynchttpclient/Realm.java‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ public class Realm {
5151
privatefinalStringnc;
5252
privatefinalStringcnonce;
5353
privatefinalUriuri;
54-
privatefinalStringmethodName;
5554
privatefinalbooleanusePreemptiveAuth;
5655
privatefinalCharsetcharset;
5756
privatefinalStringntlmHost;
@@ -60,7 +59,6 @@ public class Realm {
6059
privatefinalbooleanomitQuery;
6160

6261
publicenumAuthScheme {
63-
6462
BASIC,DIGEST,NTLM,SPNEGO,KERBEROS
6563
}
6664

@@ -76,7 +74,6 @@ private Realm(AuthScheme scheme,//
7674
Stringnc,//
7775
Stringcnonce,//
7876
Uriuri,//
79-
StringmethodName,//
8077
booleanusePreemptiveAuth,//
8178
Charsetcharset,//
8279
StringntlmDomain,//
@@ -96,7 +93,6 @@ private Realm(AuthScheme scheme,//
9693
this.nc =nc;
9794
this.cnonce =cnonce;
9895
this.uri =uri;
99-
this.methodName =methodName;
10096
this.usePreemptiveAuth =usePreemptiveAuth;
10197
this.charset =charset;
10298
this.ntlmDomain =ntlmDomain;
@@ -157,10 +153,6 @@ public Charset getCharset() {
157153
returncharset;
158154
}
159155

160-
publicStringgetMethodName() {
161-
returnmethodName;
162-
}
163-
164156
/**
165157
* Return true is preemptive authentication is enabled
166158
*
@@ -200,7 +192,7 @@ public boolean isOmitQuery() {
200192
publicStringtoString() {
201193
return"Realm{" +"principal='" +principal +'\'' +", scheme=" +scheme +", realmName='" +realmName +'\'' +", nonce='" +nonce +'\'' +", algorithm='" +algorithm
202194
+'\'' +", response='" +response +'\'' +", qop='" +qop +'\'' +", nc='" +nc +'\'' +", cnonce='" +cnonce +'\'' +", uri='" +uri +'\''
203-
+",methodName='" +methodName +'\'' +",useAbsoluteURI='" +useAbsoluteURI +'\'' +", omitQuery='" +omitQuery +'\'' +'}';
195+
+", useAbsoluteURI='" +useAbsoluteURI +'\'' +", omitQuery='" +omitQuery +'\'' +'}';
204196
}
205197

206198
/**
@@ -503,7 +495,6 @@ public Realm build() {
503495
nc,//
504496
cnonce,//
505497
uri,//
506-
methodName,//
507498
usePreemptive,//
508499
charset,//
509500
ntlmDomain,//

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp