Skip to content

Commit

Permalink
LMSA-9412 code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mrw-iu committed Dec 3, 2024
1 parent 81aeb3d commit 85939eb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"path": "0.12.7",
"standard": "17.1.0",
"style-loader": "^4.0.0",
"webpack": "5.91.0",
"webpack": "5.94.0",
"webpack-cli": "5.1.4"
},
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.util.pattern.PathPatternParser;

@Configuration
@EnableWebMvc
Expand All @@ -62,5 +60,4 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/app/jsreact/**").addResourceLocations("classpath:/META-INF/resources/jsreact/").resourceChain(true);
registry.addResourceHandler("/app/jsrivet/**").addResourceLocations("classpath:/META-INF/resources/jsrivet/").resourceChain(true);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ public static Date validateDate(String dateInput, String dateFormat, String time
}

/**
* Check if valid popup date. Throws IllegalArgumentException with vaildation failure details
* Check if valid popup date. Throws IllegalArgumentException with validation failure details
* @param popupDate
* @param dateFormat
* @param dateFormat - used for the returned error message only to describe your expected format
*/
public static void validate(Date popupDate, String dateFormat) {
Date now = new Date();
Expand Down Expand Up @@ -117,9 +117,4 @@ private static Date string2Date(String dateString, @NonNull String formatString,
return null;
}

public static String date2String(Date date, @NonNull String formatString) {
SimpleDateFormat formatter = new SimpleDateFormat(formatString);
return formatter.format(date);
}

}
1 change: 0 additions & 1 deletion src/test/resources/application-csw.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
spring.jpa.generate-ddl=true

spring.datasource.type=org.springframework.jdbc.datasource.DriverManagerDataSource

0 comments on commit 85939eb

Please sign in to comment.