Skip to content

Commit 44626c7

Browse files
committed
style: do not suppress this-escape
1 parent 324969f commit 44626c7

File tree

6 files changed

+5
-6
lines changed

6 files changed

+5
-6
lines changed

pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
<arg>-Xlint:-try</arg>
8383
<arg>-Xlint:-unchecked</arg>
8484
<arg>-Xlint:-lossy-conversions</arg>
85-
<arg>-Xlint:-this-escape</arg>
8685
<arg>-Werror</arg>
8786
</compilerArgs>
8887
</configuration>

src/main/java/com/thealgorithms/ciphers/RSA.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public synchronized BigInteger decrypt(BigInteger encryptedMessage) {
4747
/**
4848
* Generate a new public and private key set.
4949
*/
50-
public synchronized void generateKeys(int bits) {
50+
public final synchronized void generateKeys(int bits) {
5151
SecureRandom r = new SecureRandom();
5252
BigInteger p = new BigInteger(bits / 2, 100, r);
5353
BigInteger q = new BigInteger(bits / 2, 100, r);

src/main/java/com/thealgorithms/datastructures/heaps/MaxHeap.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private HeapElement extractMax() {
9191
}
9292

9393
@Override
94-
public void insertElement(HeapElement element) {
94+
public final void insertElement(HeapElement element) {
9595
maxHeap.add(element);
9696
toggleUp(maxHeap.size());
9797
}

src/main/java/com/thealgorithms/datastructures/heaps/MinHeap.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private HeapElement extractMin() {
8585
}
8686

8787
@Override
88-
public void insertElement(HeapElement element) {
88+
public final void insertElement(HeapElement element) {
8989
minHeap.add(element);
9090
toggleUp(minHeap.size());
9191
}

src/main/java/com/thealgorithms/datastructures/lists/DoublyLinkedList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @author Unknown
1515
*/
16-
public class DoublyLinkedList {
16+
public final class DoublyLinkedList {
1717

1818
/**
1919
* Head refers to the front of the list

src/main/java/com/thealgorithms/datastructures/trees/SegmentTree.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public SegmentTree(int n, int[] arr) {
1919
}
2020

2121
/* A function which will create the segment tree*/
22-
public int constructTree(int[] arr, int start, int end, int index) {
22+
public final int constructTree(int[] arr, int start, int end, int index) {
2323
if (start == end) {
2424
this.seg_t[index] = arr[start];
2525
return arr[start];

0 commit comments

Comments
 (0)