Fix ci errors

pull/762/head
chen.ma 2 years ago
parent 87100acee6
commit 00440506c2

@ -85,7 +85,7 @@ public class JWTAuthorizationFilter extends BasicAuthenticationFilter {
String resultStatus = "-1"; String resultStatus = "-1";
if (ex instanceof ServiceException) { if (ex instanceof ServiceException) {
ServiceException serviceException = (ServiceException) ex; ServiceException serviceException = (ServiceException) ex;
resultStatus = serviceException.errorCode.getCode(); resultStatus = serviceException.getErrorCode().getCode();
} }
response.getWriter().write(JSONUtil.toJSONString(Results.failure(resultStatus, ex.getMessage()))); response.getWriter().write(JSONUtil.toJSONString(Results.failure(resultStatus, ex.getMessage())));
response.getWriter().flush(); response.getWriter().flush();

@ -65,8 +65,8 @@ import java.util.concurrent.locks.ReentrantLock;
**/ **/
public class ResizableCapacityLinkedBlockingQueue<E> extends AbstractQueue<E> public class ResizableCapacityLinkedBlockingQueue<E> extends AbstractQueue<E>
implements implements
BlockingQueue<E>, BlockingQueue<E>,
java.io.Serializable { java.io.Serializable {
private static final long serialVersionUID = -6903933977591709194L; private static final long serialVersionUID = -6903933977591709194L;
@ -233,7 +233,7 @@ public class ResizableCapacityLinkedBlockingQueue<E> extends AbstractQueue<E>
*/ */
public ResizableCapacityLinkedBlockingQueue(Collection<? extends E> c) { public ResizableCapacityLinkedBlockingQueue(Collection<? extends E> c) {
this(Integer.MAX_VALUE); this(Integer.MAX_VALUE);
for (Iterator<? extends E> it = c.iterator(); it.hasNext(); ) { for (Iterator<? extends E> it = c.iterator(); it.hasNext();) {
add(it.next()); add(it.next());
} }
} }
@ -357,7 +357,7 @@ public class ResizableCapacityLinkedBlockingQueue<E> extends AbstractQueue<E>
final AtomicInteger count = this.count; final AtomicInteger count = this.count;
putLock.lockInterruptibly(); putLock.lockInterruptibly();
try { try {
for (; ; ) { for (;;) {
if (count.get() < capacity) { if (count.get() < capacity) {
insert(o); insert(o);
c = count.getAndIncrement(); c = count.getAndIncrement();
@ -463,7 +463,7 @@ public class ResizableCapacityLinkedBlockingQueue<E> extends AbstractQueue<E>
final ReentrantLock takeLock = this.takeLock; final ReentrantLock takeLock = this.takeLock;
takeLock.lockInterruptibly(); takeLock.lockInterruptibly();
try { try {
for (; ; ) { for (;;) {
if (count.get() > 0) { if (count.get() > 0) {
x = extract(); x = extract();
c = count.getAndDecrement(); c = count.getAndDecrement();
@ -832,7 +832,7 @@ public class ResizableCapacityLinkedBlockingQueue<E> extends AbstractQueue<E>
last = head = new Node<E>(null); last = head = new Node<E>(null);
// Read in all elements and place in queue // Read in all elements and place in queue
for (; ; ) { for (;;) {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
E item = (E) s.readObject(); E item = (E) s.readObject();
if (item == null) { if (item == null) {

@ -91,7 +91,7 @@ public class DynamicThreadPoolServiceLoader {
try { try {
return clazz.getDeclaredConstructor().newInstance(); return clazz.getDeclaredConstructor().newInstance();
} catch (InstantiationException | IllegalAccessException | InvocationTargetException } catch (InstantiationException | IllegalAccessException | InvocationTargetException
| NoSuchMethodException e) { | NoSuchMethodException e) {
throw new ServiceLoaderInstantiationException(clazz, e); throw new ServiceLoaderInstantiationException(clazz, e);
} }
} }

Loading…
Cancel
Save