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";
if (ex instanceof ServiceException) {
ServiceException serviceException = (ServiceException) ex;
resultStatus = serviceException.errorCode.getCode();
resultStatus = serviceException.getErrorCode().getCode();
}
response.getWriter().write(JSONUtil.toJSONString(Results.failure(resultStatus, ex.getMessage())));
response.getWriter().flush();

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

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

@ -25,9 +25,9 @@ import java.text.DecimalFormat;
public class ByteConvertUtil {
public static final int KB_SIZE = 2 << 9;
public static final int MB_SIZE = 2 << 19;
public static final int GB_SIZE = 2 << 29;
public static String getPrintSize(long size) {

Loading…
Cancel
Save