diff --git a/LICENSE b/LICENSE index a9ee15f..818897a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright © 2021 xrv +Copyright © 2021 xrv Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/FindKthLargest.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/FindKthLargest.java index 50be956..aab263f 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/FindKthLargest.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/FindKthLargest.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/FindMaxSum.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/FindMaxSum.java index ef8b6ab..c49968f 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/FindMaxSum.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/FindMaxSum.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/KnapSack3.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/KnapSack3.java index 45b85d2..c9711df 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/KnapSack3.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/KnapSack3.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/MinDist.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/MinDist.java index 9858320..0194300 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/MinDist.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/dp/MinDist.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/match/BruteForce.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/match/BruteForce.java index abbbafd..affa1ff 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/match/BruteForce.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/match/BruteForce.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/match/Kmp.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/match/Kmp.java new file mode 100644 index 0000000..ef29c94 --- /dev/null +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/match/Kmp.java @@ -0,0 +1,101 @@ +/* + * The MIT License (MIT) + * + * Copyright © 2022 xrv + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + +package io.github.ehlxr.algorithm.match; + +import java.util.Arrays; + +/** + * 字符串匹配算法 KPM + * + * @author ehlxr + * @since 2022-03-13 10:06. + */ +public class Kmp { + public static void main(String[] args) { + String s = "bacbababaabcbab"; + String p = "abab"; + + System.out.println(Arrays.toString(getNexts(p))); + System.out.println(kmp(s, p)); + } + + public static int kmp(String s, String p) { + char[] scs = s.toCharArray(); + char[] pcs = p.toCharArray(); + + int m = s.length(); + int n = p.length(); + + int[] next = getNexts(p); + + for (int i = 0; i <= m - n; i++) { + int j = 0; + while (j < n) { + if (scs[i] == pcs[j]) { + i++; + j++; + } else { + // 当模式串与主串不匹配时,如果**不匹配字符**对应模式串下标大于 j > 0 (非首个模式串字符), + // 并且此字符前一个字符对应字符串部分匹配表中的值 next[j - 1] 也大于 0, + // 模式串后移到 next[j - 1] 位置 + if (j > 0 && next[j - 1] > 0) { + j = next[j - 1]; + } else { + break; + } + } + } + if (j == n) { + return i - n; + } + } + + return -1; + } + + private static int[] getNexts(String p) { + int m = p.length(); + char[] b = p.toCharArray(); + int[] next = new int[m]; + + next[0] = 0; + int k = 0; // 表示前后缀相匹配的最大长度 + + for (int i = 1; i < m; ++i) { + // k 为 b[0, i-1] 子串最大匹配前、后缀长度 + // b[0, k] 为 b[0, i-1] 子串最大匹配前缀子串 + while (k != 0 && b[k] != b[i]) { + // 若:b[k] != b[i],则求 b[0, i] 子串最大匹配前、后缀长度问题转换成了求 b[0, k] 子串最大匹配前、后缀长度问题 + k = next[k]; + } + if (b[k] == b[i]) { + // 若:b[k] == b[i],则 b[0, i] 子串最大匹配前、后缀长度为 k + 1 + ++k; + } + next[i] = k; + } + return next; + } +} diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/search/BinarySearch.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/search/BinarySearch.java index ff9ae2f..ffd3479 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/search/BinarySearch.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/search/BinarySearch.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/MergeSort.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/MergeSort.java index 5b144e9..9c5f5be 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/MergeSort.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/MergeSort.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/QuickSort.java b/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/QuickSort.java index ca75aa7..2f4e383 100644 --- a/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/QuickSort.java +++ b/budd-common/src/main/java/io/github/ehlxr/algorithm/sort/QuickSort.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/annotations/NoRequestLog.java b/budd-common/src/main/java/io/github/ehlxr/annotations/NoRequestLog.java index 4215b1b..b09aa69 100644 --- a/budd-common/src/main/java/io/github/ehlxr/annotations/NoRequestLog.java +++ b/budd-common/src/main/java/io/github/ehlxr/annotations/NoRequestLog.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/common/Constant.java b/budd-common/src/main/java/io/github/ehlxr/common/Constant.java index 9991e7e..889a58d 100644 --- a/budd-common/src/main/java/io/github/ehlxr/common/Constant.java +++ b/budd-common/src/main/java/io/github/ehlxr/common/Constant.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/config/RedisTemplateConfig.java b/budd-common/src/main/java/io/github/ehlxr/config/RedisTemplateConfig.java index c3bf66a..a35edbe 100644 --- a/budd-common/src/main/java/io/github/ehlxr/config/RedisTemplateConfig.java +++ b/budd-common/src/main/java/io/github/ehlxr/config/RedisTemplateConfig.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/Node.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/Node.java index 669d327..c8572dd 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/Node.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/Node.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/linkedlist/ReverseLinkedList.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/linkedlist/ReverseLinkedList.java index 7d03083..4bc77e7 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/linkedlist/ReverseLinkedList.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/linkedlist/ReverseLinkedList.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/CircularQueue.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/CircularQueue.java index 6a31fc6..51557e8 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/CircularQueue.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/CircularQueue.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/DynamicArrayQueue.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/DynamicArrayQueue.java index 3f91fc2..fb601cf 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/DynamicArrayQueue.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/DynamicArrayQueue.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue.java index 724850c..eed223f 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue2.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue2.java index fc7d84d..110e042 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue2.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/queue/LinkedListQueue2.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/ArrayStack.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/ArrayStack.java index caa68ff..b5ed8b0 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/ArrayStack.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/ArrayStack.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/LinkedListStack.java b/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/LinkedListStack.java index 3e95f59..07bff0c 100644 --- a/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/LinkedListStack.java +++ b/budd-common/src/main/java/io/github/ehlxr/datastructure/stack/LinkedListStack.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/enums/CodeEnum.java b/budd-common/src/main/java/io/github/ehlxr/enums/CodeEnum.java index 1d2e834..4f37b3a 100644 --- a/budd-common/src/main/java/io/github/ehlxr/enums/CodeEnum.java +++ b/budd-common/src/main/java/io/github/ehlxr/enums/CodeEnum.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/enums/FormType.java b/budd-common/src/main/java/io/github/ehlxr/enums/FormType.java index fbca84a..40029b5 100644 --- a/budd-common/src/main/java/io/github/ehlxr/enums/FormType.java +++ b/budd-common/src/main/java/io/github/ehlxr/enums/FormType.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/enums/HttpContentType.java b/budd-common/src/main/java/io/github/ehlxr/enums/HttpContentType.java index 3c9bb33..edcf775 100644 --- a/budd-common/src/main/java/io/github/ehlxr/enums/HttpContentType.java +++ b/budd-common/src/main/java/io/github/ehlxr/enums/HttpContentType.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/exception/JsonParseException.java b/budd-common/src/main/java/io/github/ehlxr/exception/JsonParseException.java index 2375083..ef9a469 100644 --- a/budd-common/src/main/java/io/github/ehlxr/exception/JsonParseException.java +++ b/budd-common/src/main/java/io/github/ehlxr/exception/JsonParseException.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/exception/ServiceDataException.java b/budd-common/src/main/java/io/github/ehlxr/exception/ServiceDataException.java index 518db35..7d35365 100644 --- a/budd-common/src/main/java/io/github/ehlxr/exception/ServiceDataException.java +++ b/budd-common/src/main/java/io/github/ehlxr/exception/ServiceDataException.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/function/BlockerActionConsumer.java b/budd-common/src/main/java/io/github/ehlxr/function/BlockerActionConsumer.java index df65ddf..252b477 100644 --- a/budd-common/src/main/java/io/github/ehlxr/function/BlockerActionConsumer.java +++ b/budd-common/src/main/java/io/github/ehlxr/function/BlockerActionConsumer.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/function/BlockerTaskFunction.java b/budd-common/src/main/java/io/github/ehlxr/function/BlockerTaskFunction.java index b261356..765f146 100644 --- a/budd-common/src/main/java/io/github/ehlxr/function/BlockerTaskFunction.java +++ b/budd-common/src/main/java/io/github/ehlxr/function/BlockerTaskFunction.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/function/CallableFunction.java b/budd-common/src/main/java/io/github/ehlxr/function/CallableFunction.java index b911b1f..c5dea02 100644 --- a/budd-common/src/main/java/io/github/ehlxr/function/CallableFunction.java +++ b/budd-common/src/main/java/io/github/ehlxr/function/CallableFunction.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/function/RecursiveTaskFunction.java b/budd-common/src/main/java/io/github/ehlxr/function/RecursiveTaskFunction.java index 78077da..60a2a55 100644 --- a/budd-common/src/main/java/io/github/ehlxr/function/RecursiveTaskFunction.java +++ b/budd-common/src/main/java/io/github/ehlxr/function/RecursiveTaskFunction.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/function/RunnableConsumer.java b/budd-common/src/main/java/io/github/ehlxr/function/RunnableConsumer.java index 968659f..a795a92 100644 --- a/budd-common/src/main/java/io/github/ehlxr/function/RunnableConsumer.java +++ b/budd-common/src/main/java/io/github/ehlxr/function/RunnableConsumer.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/queue/RedisDelayQueue.java b/budd-common/src/main/java/io/github/ehlxr/queue/RedisDelayQueue.java index e76b85e..ad3dbd5 100644 --- a/budd-common/src/main/java/io/github/ehlxr/queue/RedisDelayQueue.java +++ b/budd-common/src/main/java/io/github/ehlxr/queue/RedisDelayQueue.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/semaphore/DistributedSemaphore.java b/budd-common/src/main/java/io/github/ehlxr/semaphore/DistributedSemaphore.java index 9b237ab..5e7f569 100644 --- a/budd-common/src/main/java/io/github/ehlxr/semaphore/DistributedSemaphore.java +++ b/budd-common/src/main/java/io/github/ehlxr/semaphore/DistributedSemaphore.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/semaphore/RedisSemaphore.java b/budd-common/src/main/java/io/github/ehlxr/semaphore/RedisSemaphore.java index 4e924f2..a4b666f 100644 --- a/budd-common/src/main/java/io/github/ehlxr/semaphore/RedisSemaphore.java +++ b/budd-common/src/main/java/io/github/ehlxr/semaphore/RedisSemaphore.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/semaphore/SemaphoreInfo.java b/budd-common/src/main/java/io/github/ehlxr/semaphore/SemaphoreInfo.java index 473d635..4594088 100644 --- a/budd-common/src/main/java/io/github/ehlxr/semaphore/SemaphoreInfo.java +++ b/budd-common/src/main/java/io/github/ehlxr/semaphore/SemaphoreInfo.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/DateUtil.java b/budd-common/src/main/java/io/github/ehlxr/util/DateUtil.java index 973e012..5b71243 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/DateUtil.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/DateUtil.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/HttpUtil.java b/budd-common/src/main/java/io/github/ehlxr/util/HttpUtil.java index c27b36a..55fb459 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/HttpUtil.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/HttpUtil.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/IdUtil.java b/budd-common/src/main/java/io/github/ehlxr/util/IdUtil.java index f45e603..2e767a3 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/IdUtil.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/IdUtil.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/JsonUtils.java b/budd-common/src/main/java/io/github/ehlxr/util/JsonUtils.java index 6479bce..0267a54 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/JsonUtils.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/JsonUtils.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/MyBloomFilter.java b/budd-common/src/main/java/io/github/ehlxr/util/MyBloomFilter.java index ae50a21..70fa8f5 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/MyBloomFilter.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/MyBloomFilter.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/RedisUtil.java b/budd-common/src/main/java/io/github/ehlxr/util/RedisUtil.java index a42e444..af0295a 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/RedisUtil.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/RedisUtil.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/SendAlarmUtil.java b/budd-common/src/main/java/io/github/ehlxr/util/SendAlarmUtil.java index 276c09f..3f949b5 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/SendAlarmUtil.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/SendAlarmUtil.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-common/src/main/java/io/github/ehlxr/util/Try.java b/budd-common/src/main/java/io/github/ehlxr/util/Try.java index a9c9eba..cc471bd 100644 --- a/budd-common/src/main/java/io/github/ehlxr/util/Try.java +++ b/budd-common/src/main/java/io/github/ehlxr/util/Try.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-demo/src/main/java/io/github/ehlxr/Main.java b/budd-demo/src/main/java/io/github/ehlxr/Main.java index b2a7995..781b9d6 100644 --- a/budd-demo/src/main/java/io/github/ehlxr/Main.java +++ b/budd-demo/src/main/java/io/github/ehlxr/Main.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-demo/src/main/java/io/github/ehlxr/ManagedBlockerTest.java b/budd-demo/src/main/java/io/github/ehlxr/ManagedBlockerTest.java index 670e3ae..d54e1a3 100644 --- a/budd-demo/src/main/java/io/github/ehlxr/ManagedBlockerTest.java +++ b/budd-demo/src/main/java/io/github/ehlxr/ManagedBlockerTest.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-server/src/main/java/io/github/ehlxr/BuddServerApplication.java b/budd-server/src/main/java/io/github/ehlxr/BuddServerApplication.java index 916aa17..2fad2f5 100644 --- a/budd-server/src/main/java/io/github/ehlxr/BuddServerApplication.java +++ b/budd-server/src/main/java/io/github/ehlxr/BuddServerApplication.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-server/src/main/java/io/github/ehlxr/aop/LogRequestAop.java b/budd-server/src/main/java/io/github/ehlxr/aop/LogRequestAop.java index c8c1cb5..113bbe9 100644 --- a/budd-server/src/main/java/io/github/ehlxr/aop/LogRequestAop.java +++ b/budd-server/src/main/java/io/github/ehlxr/aop/LogRequestAop.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-server/src/main/java/io/github/ehlxr/config/LoggerLevelRefresher.java b/budd-server/src/main/java/io/github/ehlxr/config/LoggerLevelRefresher.java index 625c88c..2188471 100644 --- a/budd-server/src/main/java/io/github/ehlxr/config/LoggerLevelRefresher.java +++ b/budd-server/src/main/java/io/github/ehlxr/config/LoggerLevelRefresher.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2022 xrv + * Copyright © 2022 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-server/src/main/java/io/github/ehlxr/controller/IndexController.java b/budd-server/src/main/java/io/github/ehlxr/controller/IndexController.java index dac0641..6869c46 100644 --- a/budd-server/src/main/java/io/github/ehlxr/controller/IndexController.java +++ b/budd-server/src/main/java/io/github/ehlxr/controller/IndexController.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-server/src/main/java/io/github/ehlxr/controller/redis/RedisController.java b/budd-server/src/main/java/io/github/ehlxr/controller/redis/RedisController.java index 3619845..ed38418 100644 --- a/budd-server/src/main/java/io/github/ehlxr/controller/redis/RedisController.java +++ b/budd-server/src/main/java/io/github/ehlxr/controller/redis/RedisController.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2021 xrv + * Copyright © 2021 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/budd-server/src/main/java/io/github/ehlxr/interceptor/TraceInterceptor.java b/budd-server/src/main/java/io/github/ehlxr/interceptor/TraceInterceptor.java index fbb39f5..03c8469 100644 --- a/budd-server/src/main/java/io/github/ehlxr/interceptor/TraceInterceptor.java +++ b/budd-server/src/main/java/io/github/ehlxr/interceptor/TraceInterceptor.java @@ -1,7 +1,7 @@ /* * The MIT License (MIT) * - * Copyright © 2020 xrv + * Copyright © 2020 xrv * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal