Skip to content

Commit

Permalink
Merge pull request haibuzou#9 from DevFactory/release/Array_designato…
Browse files Browse the repository at this point in the history
…rs__should_be_on_the_type,_not_the_variable

Fixing squid: S1197 Array designators [] should be on the type and not on the variable
  • Loading branch information
haibuzou committed May 22, 2016
2 parents 8856708 + e93f4c8 commit fbeb937
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public class DPCNCalendar extends DPCalendar {

private static final String[][] DEFERRED = {{"4"}, {"15", "16", "17", "25", "26", "27", "28"}, {""}, {""}, {""}, {""}, {""}, {""}, {"6", "28", "29", "30"}, {"8", "9", "10"}, {""}, {""}};

private static final String SOLAR_TERM[][] = {{"小寒", "大寒"}, {"立春", "雨水"}, {"惊蛰", "春分"}, {"清明", "谷雨"}, {"立夏", "小满"}, {"芒种", "夏至"}, {"小暑", "大暑"}, {"立秋", "处暑"}, {"白露", "秋分"}, {"寒露", "霜降"}, {"立冬", "小雪"}, {"大雪", "冬至"}};
private static final String[][] SOLAR_TERM = {{"小寒", "大寒"}, {"立春", "雨水"}, {"惊蛰", "春分"}, {"清明", "谷雨"}, {"立夏", "小满"}, {"芒种", "夏至"}, {"小暑", "大暑"}, {"立秋", "处暑"}, {"白露", "秋分"}, {"寒露", "霜降"}, {"立冬", "小雪"}, {"大雪", "冬至"}};

private final HashMap<Integer, String[][]> cacheSolarTerm = new HashMap<>();

Expand Down Expand Up @@ -119,7 +119,7 @@ public Set<String> buildMonthHoliday(int year, int month) {
private String[][] buildMonthL(int year, int month) {
String[][] gregorianMonth = buildMonthG(year, month);
G g = new G();
String tmp[][] = new String[6][7];
String[][] tmp = new String[6][7];
for (int i = 0; i < tmp.length; i++) {
for (int j = 0; j < tmp[0].length; j++) {
tmp[i][j] = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public boolean isToday(int year, int month, int day) {
*/
public String[][] buildMonthG(int year, int month) {
c.clear();
String tmp[][] = new String[6][7];
String[][] tmp = new String[6][7];
c.set(year, month - 1, 1);

int daysInMonth = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class DPUSCalendar extends DPCalendar {
@Override
public String[][] buildMonthFestival(int year, int month) {
String[][] gregorianMonth = buildMonthG(year, month);
String tmp[][] = new String[6][7];
String[][] tmp = new String[6][7];
for (int i = 0; i < tmp.length; i++) {
for (int j = 0; j < tmp[0].length; j++) {
tmp[i][j] = "";
Expand Down
Loading

0 comments on commit fbeb937

Please sign in to comment.