Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed Aug 27, 2023
1 parent 2821560 commit 99de0bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package com.amashchenko.maven.plugin.gitflow;

import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
Expand All @@ -31,7 +32,6 @@
import java.util.TimeZone;
import java.util.regex.Pattern;

import org.apache.commons.lang3.SystemUtils;
import org.apache.maven.artifact.ArtifactUtils;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Dependency;
Expand Down Expand Up @@ -284,7 +284,7 @@ private void initExecutables() {
final boolean wrapper = javaCommand.startsWith("org.apache.maven.wrapper.MavenWrapperMain");

if (wrapper) {
mvnExecutable = "." + SystemUtils.FILE_SEPARATOR + "mvnw";
mvnExecutable = "." + File.separator + "mvnw";
} else {
mvnExecutable = "mvn";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertThrows;

public class GitFlowVersionInfoTest {
@Test
public void testCreating() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@
import java.util.Arrays;
import java.util.Collection;


import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;


public class NextHotfixVersionTest {

public static Collection<Object[]> data() {
Expand Down

0 comments on commit 99de0bb

Please sign in to comment.