summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiBo <nibocn@gmail.com>2020-05-19 11:17:17 +0800
committerNiBo <nibocn@gmail.com>2020-05-19 11:25:54 +0800
commit0b5d72fecdbb50e9c6b72af7356a10f755e1a764 (patch)
tree350b47792f0ac8e12f495b8a5bbcda9becbab6f7
parente61e1147b0cc33039c96f9518e22363d3d63d5a9 (diff)
downloadale-0b5d72fecdbb50e9c6b72af7356a10f755e1a764.zip
refactor(javac): ale_java_javac_sourcepath variable defaults to String
-rw-r--r--ale_linters/java/javac.vim2
-rw-r--r--doc/ale-java.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/java/javac.vim b/ale_linters/java/javac.vim
index 949733f8..f866eb09 100644
--- a/ale_linters/java/javac.vim
+++ b/ale_linters/java/javac.vim
@@ -6,7 +6,7 @@ let s:classpath_sep = has('unix') ? ':' : ';'
call ale#Set('java_javac_executable', 'javac')
call ale#Set('java_javac_options', '')
call ale#Set('java_javac_classpath', '')
-call ale#Set('java_javac_sourcepath', [])
+call ale#Set('java_javac_sourcepath', '')
function! ale_linters#java#javac#RunWithImportPaths(buffer) abort
let l:command = ''
diff --git a/doc/ale-java.txt b/doc/ale-java.txt
index 1fcd663b..d2001ca7 100644
--- a/doc/ale-java.txt
+++ b/doc/ale-java.txt
@@ -70,7 +70,7 @@ g:ale_java_javac_options *g:ale_java_javac_options*
g:ale_java_javac_sourcepath *g:ale_java_javac_sourcepath*
*b:ale_java_javac_sourcepath*
Type: |String| or |List|
- Default: `[]`
+ Default: `''`
This variable can set multiple source code paths, the source code path is a
relative path (relative to the project root directory).