Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhom1314 committed Jan 7, 2024
1 parent 064321d commit 38d2e72
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,4 @@ private static InetAddress getLocalHostExactAddress() throws SocketException, Un
}
return candidateAddress == null ? InetAddress.getLocalHost() : candidateAddress;
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.dromara.dynamictp.core.executor.priority;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.dromara.dynamictp.core.executor.priority;

import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.dromara.dynamictp.core.executor.priority;

import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -116,7 +117,6 @@ public PriorityDtpExecutor(int corePoolSize,
super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory, handler);
}


@Override
protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value) {
return new PriorityFutureTask<>(runnable, value);
Expand Down Expand Up @@ -149,7 +149,6 @@ public <T> Future<T> submit(Runnable task, T result, int priority) {
return super.submit(PriorityRunnable.of(task, priority), result);
}


@Override
public <T> Future<T> submit(Callable<T> task) {
return super.submit(PriorityCallable.of(task, DEFAULT_PRIORITY));
Expand All @@ -159,7 +158,6 @@ public <T> Future<T> submit(Callable<T> task, int priority) {
return super.submit(PriorityCallable.of(task, priority));
}


/**
* Priority Comparator
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dromara.dynamictp.core.executor.priority;

package org.dromara.dynamictp.core.executor.priority;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dromara.dynamictp.core.executor.priority;

package org.dromara.dynamictp.core.executor.priority;

import lombok.Getter;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.dromara.dynamictp.test.core.thread;

import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.dromara.dynamictp.test.core.thread;

import lombok.extern.slf4j.Slf4j;
Expand Down

0 comments on commit 38d2e72

Please sign in to comment.