Skip to content

Commit

Permalink
More sledgehammers
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason-Lam committed Jun 30, 2022
1 parent de0d9b1 commit 40ae198
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/team3128/ConstantsInt.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Hashtable;

import frc.team3128.common.utility.Log;

Expand All @@ -18,17 +18,17 @@

public class ConstantsInt {

private static HashMap<String, Class<?>> categories; // HashMap storing each class in the Constants class
private static volatile Hashtable<String, Class<?>> categories; // HashMap storing each class in the Constants class

public static HashMap<String, ArrayList<Field>> editConstants;
public static volatile Hashtable<String, ArrayList<Field>> editConstants;

//Members of the Field class used to change the finality of a field
private static Method getRoot;
private static Field modifiers;

static {

categories = new HashMap<String, Class<?>>();
categories = new Hashtable<String, Class<?>>();
//Add each class to the HashMap
categories.put("ConversionConstants", Constants.ConversionConstants.class);
categories.put("DriveConstants", Constants.DriveConstants.class);
Expand All @@ -38,7 +38,7 @@ public class ConstantsInt {
categories.put("IntakeConstants", Constants.IntakeConstants.class);
categories.put("VisionConstants", Constants.VisionConstants.class);

editConstants = new HashMap<String, ArrayList<Field>>();
editConstants = new Hashtable<String, ArrayList<Field>>();

for(String category : categories.keySet()){
editConstants.put(category, new ArrayList<Field>());
Expand Down

0 comments on commit 40ae198

Please sign in to comment.