This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
db7150ce
Commit
db7150ce
authored
4 years ago
by
Daniel Rainer
Browse files
Options
Downloads
Patches
Plain Diff
Make field and methods static
parent
27f08844
Branches
Branches containing commit
2 merge requests
!17
Initial Merge to Prepare Release 1.0.0
,
!1
Resolve "Metadaten konsolideren"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/at/ac/uibk/gitsearch/repository/search/MetaDataRepository.java
+3
-4
3 additions, 4 deletions
.../uibk/gitsearch/repository/search/MetaDataRepository.java
with
3 additions
and
4 deletions
src/main/java/at/ac/uibk/gitsearch/repository/search/MetaDataRepository.java
+
3
−
4
View file @
db7150ce
...
...
@@ -11,7 +11,6 @@ import java.util.Set;
import
java.util.StringTokenizer
;
import
java.util.TreeMap
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
import
org.apache.commons.lang3.StringUtils
;
import
org.elasticsearch.action.search.SearchRequest
;
...
...
@@ -75,7 +74,7 @@ public class MetaDataRepository {
private
final
ApplicationProperties
properties
;
private
final
int
FRAGMENT_SIZE
=
5000
;
private
static
final
int
FRAGMENT_SIZE
=
5000
;
public
MetaDataRepository
(
RestHighLevelClient
elasticsearchClient
,
ApplicationProperties
properties
)
{
this
.
elasticsearchClient
=
elasticsearchClient
;
...
...
@@ -180,7 +179,7 @@ public class MetaDataRepository {
}
}
private
void
addTo
(
Map
<
String
,
Set
<
String
>>
completionMap
,
List
<
String
>
tokenList
,
String
target
)
{
private
static
void
addTo
(
Map
<
String
,
Set
<
String
>>
completionMap
,
List
<
String
>
tokenList
,
String
target
)
{
tokenList
.
forEach
(
token
->
{
Set
<
String
>
existingTargets
=
completionMap
.
get
(
token
);
if
(
existingTargets
==
null
)
{
...
...
@@ -193,7 +192,7 @@ public class MetaDataRepository {
private
List
<
String
>
split
(
String
s
)
{
private
static
List
<
String
>
split
(
String
s
)
{
StringTokenizer
st
=
new
StringTokenizer
(
s
,
" \t\n\r\f "
);
List
<
String
>
result
=
new
ArrayList
<>();
while
(
st
.
hasMoreTokens
())
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment