Skip to content

Updated spotless #1753

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 2 commits into from
May 4, 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
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'java'
id 'maven-publish'
id 'com.diffplug.spotless' version '6.12.0'
id 'com.diffplug.spotless' version '6.25.0'
id 'org.sonarqube' version '5.0.0.4638'
id 'jacoco'
}
Expand Down Expand Up @@ -54,7 +54,7 @@ spotless {
}
importOrder '\\#', '', '*'
removeUnusedImports()
googleJavaFormat('1.15.0').aosp()
googleJavaFormat('1.22.0').aosp()
toggleOffOn()
endWithNewline()
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com_github_leetcode/Employee.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
public class Employee {
/** It's the unique id of each node; unique id of this employee */
public int id;

/** the importance value of this employee */
public int importance;

/** the id of direct subordinates */
public List<Integer> subordinates;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
public class MyQueue {
private Deque<Integer> left;
private Deque<Integer> right;

// Initialize your data structure here.
public MyQueue() {
left = new ArrayDeque<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public void update(int i, int v) {
bit[i] += v;
}
}

// prefix sum query
private int ps(int j) {
int ps = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Solution {
{{0, -1}, {-1, 0}},
{{0, 1}, {-1, 0}}
};

// the idea is you need to check port direction match, you can go to next cell and check whether
// you can come back.
public boolean hasValidPath(int[][] grid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class Solution {
private int ans = 0;

public int maximumRows(int[][] matrix, int numSelect) {
dfs(matrix, /*colIndex=*/ 0, numSelect, /*mask=*/ 0);
dfs(matrix, /* colIndex= */ 0, numSelect, /* mask= */ 0);
return ans;
}

Expand Down
Loading