Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8276042: Remove unused local variables in java.naming #6091

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -307,7 +307,6 @@ private static void encodeSimpleFilter(BerEncoder ber, byte[] filter,
dbgIndent++;
}

String type, value;
int valueStart, valueEnd, typeStart, typeEnd;

int eq;
@@ -2603,7 +2603,6 @@ private static Vector<Vector<String>> extractURLs(String refString) {

Vector<Vector<String>> referrals = new Vector<>(urlCount);
int iURL;
int i = 0;

separator = refString.indexOf('\n');
iURL = separator + 1;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2003, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -73,7 +73,7 @@ public void write(int b) throws IOException {
*/
public void write(byte[] buffer, int offset, int total) throws IOException {
int count;
byte[] wrappedToken, saslBuffer;
byte[] wrappedToken;

// "Packetize" buffer to be within rawSendSize
if (debug) {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -134,7 +134,7 @@ public void setSuccess() {
/**
* Fills in an exception's fields using data from this Continuation.
* The resolved name is set by subtracting remainingName from starter.
* %%% This might not not always produce the correct answer wrt trailing "/".
* %%% This might not always produce the correct answer wrt trailing "/".
* If the exception is a CannotProceedException, its environment,
* altName, and altNameCtx fields are set using this continuation's
* environment, relativeResolvedName, and resolvedContext.
@@ -296,8 +296,6 @@ private void setContinueAux(Object resObj,
* @param currCtx The non-null context from which relResName is to be resolved.
*/
public void setContinueNNS(Object resObj, Name relResName, Context currCtx) {
CompositeName rname = new CompositeName();

setContinue(resObj, relResName, currCtx, PartialCompositeContext._NNS_NAME);
}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -510,7 +510,6 @@ protected static PartialCompositeContext getPCContext(Continuation cont)
throws NamingException {

Object obj = cont.getResolvedObj();
PartialCompositeContext pctx = null;

if (obj instanceof PartialCompositeContext) {
turbanoff marked this conversation as resolved.
Show resolved Hide resolved
// Just cast if octx already is PartialCompositeContext