Skip to content

style: do not suppress this-escape #5166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
<arg>-Xlint:-try</arg>
<arg>-Xlint:-unchecked</arg>
<arg>-Xlint:-lossy-conversions</arg>
<arg>-Xlint:-this-escape</arg>
<arg>-Werror</arg>
</compilerArgs>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/thealgorithms/ciphers/RSA.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public synchronized BigInteger decrypt(BigInteger encryptedMessage) {
/**
* Generate a new public and private key set.
*/
public synchronized void generateKeys(int bits) {
public final synchronized void generateKeys(int bits) {
SecureRandom r = new SecureRandom();
BigInteger p = new BigInteger(bits / 2, 100, r);
BigInteger q = new BigInteger(bits / 2, 100, r);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private HeapElement extractMax() {
}

@Override
public void insertElement(HeapElement element) {
public final void insertElement(HeapElement element) {
maxHeap.add(element);
toggleUp(maxHeap.size());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private HeapElement extractMin() {
}

@Override
public void insertElement(HeapElement element) {
public final void insertElement(HeapElement element) {
minHeap.add(element);
toggleUp(minHeap.size());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author Unknown
*/
public class DoublyLinkedList {
public final class DoublyLinkedList {

/**
* Head refers to the front of the list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public SegmentTree(int n, int[] arr) {
}

/* A function which will create the segment tree*/
public int constructTree(int[] arr, int start, int end, int index) {
public final int constructTree(int[] arr, int start, int end, int index) {
if (start == end) {
this.seg_t[index] = arr[start];
return arr[start];
Expand Down