Added checkstyle for trailing whitespace

master
Evan Harris 5 years ago
parent 2d30a37208
commit f476fd7c33
No known key found for this signature in database
GPG Key ID: FF3BD4DA59FF9EDC
  1. 2
      airsonic-main/src/main/java/org/airsonic/player/controller/RecoverController.java
  2. 2
      airsonic-main/src/main/java/org/airsonic/player/dao/AbstractDao.java
  3. 2
      airsonic-main/src/main/java/org/airsonic/player/dao/MusicFolderDao.java
  4. 12
      airsonic-main/src/main/java/org/airsonic/player/service/MediaScannerService.java
  5. 2
      airsonic-main/src/main/java/org/airsonic/player/service/SettingsService.java
  6. 6
      airsonic-main/src/main/java/org/airsonic/player/service/UPnPService.java
  7. 20
      airsonic-main/src/main/java/org/airsonic/player/service/search/AnalyzerFactory.java
  8. 16
      airsonic-main/src/main/java/org/airsonic/player/service/search/DocumentFactory.java
  9. 18
      airsonic-main/src/main/java/org/airsonic/player/service/search/FieldNames.java
  10. 4
      airsonic-main/src/main/java/org/airsonic/player/service/search/IndexManager.java
  11. 10
      airsonic-main/src/main/java/org/airsonic/player/service/search/IndexType.java
  12. 14
      airsonic-main/src/main/java/org/airsonic/player/service/search/QueryFactory.java
  13. 2
      airsonic-main/src/main/java/org/airsonic/player/service/search/SearchServiceImpl.java
  14. 4
      airsonic-main/src/main/java/org/airsonic/player/service/search/SearchServiceUtilities.java
  15. 2
      airsonic-main/src/main/java/org/airsonic/player/util/StringUtil.java
  16. 48
      airsonic-main/src/main/resources/org/airsonic/player/i18n/ResourceBundle_da.properties
  17. 2
      airsonic-main/src/main/resources/org/airsonic/player/i18n/ResourceBundle_is.properties
  18. 2
      airsonic-main/src/main/resources/org/airsonic/player/i18n/ResourceBundle_ko.properties
  19. 2
      airsonic-main/src/test/java/org/airsonic/player/domain/PlayQueueTestCase.java
  20. 2
      airsonic-main/src/test/java/org/airsonic/player/service/search/AbstractAirsonicHomeTest.java
  21. 8
      airsonic-main/src/test/java/org/airsonic/player/service/search/AirsonicHomeTest.java
  22. 8
      airsonic-main/src/test/java/org/airsonic/player/service/search/AnalyzerFactoryTestCase.java
  23. 2
      airsonic-main/src/test/java/org/airsonic/player/service/search/IndexManagerTestCase.java
  24. 6
      airsonic-main/src/test/java/org/airsonic/player/service/search/QueryFactoryTestCase.java
  25. 24
      airsonic-main/src/test/java/org/airsonic/player/service/search/SearchServiceSpecialGenreTestCase.java
  26. 4
      airsonic-main/src/test/java/org/airsonic/player/service/search/SearchServiceSpecialPathTestCase.java
  27. 2
      airsonic-main/src/test/java/org/airsonic/player/service/search/SearchServiceStartWithStopwardsTestCase.java
  28. 2
      airsonic-main/src/test/java/org/airsonic/player/service/search/SearchServiceTestCase.java
  29. 5
      checkstyle.xml

@ -65,7 +65,7 @@ public class RecoverController {
} else {
captchaOk = true;
}
if (!captchaOk) {
map.put("error", "recover.error.invalidcaptcha");
} else if (user == null) {

@ -40,7 +40,7 @@ import java.util.concurrent.TimeUnit;
*/
public class AbstractDao {
private static final Logger LOG = LoggerFactory.getLogger(AbstractDao.class);
@Autowired
private DaoHelper daoHelper;

@ -43,7 +43,7 @@ public class MusicFolderDao extends AbstractDao {
private static final String INSERT_COLUMNS = "path, name, enabled, changed";
private static final String QUERY_COLUMNS = "id, " + INSERT_COLUMNS;
private final MusicFolderRowMapper rowMapper = new MusicFolderRowMapper();
@Autowired
private UserDao userDao;

@ -52,9 +52,9 @@ public class MediaScannerService {
private static final Logger LOG = LoggerFactory.getLogger(MediaScannerService.class);
private boolean scanning;
private ScheduledExecutorService scheduler;
@Autowired
private SettingsService settingsService;
@Autowired
@ -88,7 +88,7 @@ public class MediaScannerService {
if (scheduler != null) {
scheduler.shutdown();
}
long daysBetween = settingsService.getIndexCreationInterval();
int hour = settingsService.getIndexCreationHour();
@ -96,16 +96,16 @@ public class MediaScannerService {
LOG.info("Automatic media scanning disabled.");
return;
}
scheduler = Executors.newSingleThreadScheduledExecutor();
LocalDateTime now = LocalDateTime.now();
LocalDateTime nextRun = now.withHour(hour).withMinute(0).withSecond(0);
if (now.compareTo(nextRun) > 0)
nextRun = nextRun.plusDays(1);
long initialDelay = ChronoUnit.MILLIS.between(now, nextRun);
scheduler.scheduleAtFixedRate(() -> scanLibrary(), initialDelay, TimeUnit.DAYS.toMillis(daysBetween), TimeUnit.MILLISECONDS);
LOG.info("Automatic media library scanning scheduled to run every {} day(s), starting at {}", daysBetween, nextRun);

@ -211,7 +211,7 @@ public class SettingsService {
private static final String DEFAULT_DATABASE_CONFIG_JNDI_NAME = null;
private static final Integer DEFAULT_DATABASE_MYSQL_VARCHAR_MAXLENGTH = 512;
private static final String DEFAULT_DATABASE_USERTABLE_QUOTE = null;
private static final int DEFAULT_UPNP_PORT = 4041;
// Array of obsolete keys. Used to clean property file.

@ -61,13 +61,13 @@ public class UPnPService {
@Autowired
private SettingsService settingsService;
private UpnpService upnpService;
@Autowired
@Qualifier("dispatchingContentDirectory")
private CustomContentDirectory dispatchingContentDirectory;
private AtomicReference<Boolean> running = new AtomicReference<>(false);
@PostConstruct

@ -61,10 +61,10 @@ public final class AnalyzerFactory {
/*
* XXX 3.x -> 8.x : Convert UAX#29 Underscore Analysis to Legacy Analysis
*
*
* Because changes in underscores before and after words
* have a major effect on user's forward match search.
*
*
* @see AnalyzerFactoryTestCase
*/
private void addTokenFilterForUnderscoreRemovalAroundToken(Builder builder) throws IOException {
@ -77,14 +77,14 @@ public final class AnalyzerFactory {
/*
* XXX 3.x -> 8.x : Handle brackets correctly
*
*
* Process the input value of Genre search for search of domain value.
*
*
* The tag parser performs special character conversion
* when converting input values from a file.
* Therefore, the domain value may be different from the original value.
* This filter allows searching by user readable value (file tag value).
*
*
* @see org.jaudiotagger.tag.id3.framebody.FrameBodyTCON#convertID3v23GenreToGeneric
* (TCON stands for Genre with ID3 v2.3-v2.4)
* Such processing exists because brackets in the Gener string have a special meaning.
@ -140,10 +140,10 @@ public final class AnalyzerFactory {
/**
* Returns the Analyzer to use when generating the index.
*
*
* Whether this analyzer is applied to input values depends on
* the definition of the document's fields.
*
*
* @return analyzer for index
* @see DocumentFactory
*/
@ -168,15 +168,15 @@ public final class AnalyzerFactory {
/**
* Returns the analyzer to use when generating a query for index search.
*
*
* String processing handled by QueryFactory
* is limited to Lucene's modifier.
*
*
* The processing of the operands is expressed
* in the AnalyzerFactory implementation.
* Rules for tokenizing/converting input values
* should not be described in QueryFactory.
*
*
* @return analyzer for query
* @see QueryFactory
*/

@ -100,7 +100,7 @@ public class DocumentFactory {
private BiConsumer<@NonNull Document, @NonNull String> fieldMediatype = (doc, value) ->
fieldKey.accept(doc, FieldNames.MEDIA_TYPE, value);
private BiConsumer<@NonNull Document, @NonNull String> fieldFolderPath = (doc, value) ->
private BiConsumer<@NonNull Document, @NonNull String> fieldFolderPath = (doc, value) ->
fieldKey.accept(doc, FieldNames.FOLDER, value);
private BiConsumer<@NonNull Document, @Nullable String> fieldGenre = (doc, value) -> {
@ -143,7 +143,7 @@ public class DocumentFactory {
/**
* Create a document.
*
*
* @param mediaFile target of document
* @return document
* @since legacy
@ -159,7 +159,7 @@ public class DocumentFactory {
/**
* Create a document.
*
*
* @param mediaFile target of document
* @return document
* @since legacy
@ -174,7 +174,7 @@ public class DocumentFactory {
/**
* Create a document.
*
*
* @param album target of document
* @return document
* @since legacy
@ -190,7 +190,7 @@ public class DocumentFactory {
/**
* Create a document.
*
*
* @param artist target of document
* @param musicFolder target folder exists
* @return document
@ -200,10 +200,10 @@ public class DocumentFactory {
* XXX 3.x -> 8.x :
* Only null check specification of createArtistId3Document is different from legacy.
* (The reason is only to simplify the function.)
*
*
* Since the field of domain object Album is nonnull,
* null check was not performed.
*
*
* In implementation ARTIST and ALBUM became nullable,
* but null is not input at this point in data flow.
*/
@ -217,7 +217,7 @@ public class DocumentFactory {
/**
* Create a document.
*
*
* @param mediaFile target of document
* @return document
* @since legacy

@ -31,63 +31,63 @@ class FieldNames {
/**
* A field same to a legacy server, id field.
*
*
* @since legacy
**/
public static final String ID = "id";
/**
* A field same to a legacy server, id field.
*
*
* @since legacy
**/
public static final String FOLDER_ID = "folderId";
/**
* A field same to a legacy server, numeric field.
*
*
* @since legacy
**/
public static final String YEAR = "year";
/**
* A field same to a legacy server, key field.
*
*
* @since legacy
**/
public static final String GENRE = "genre";
/**
* A field same to a legacy server, key field.
*
*
* @since legacy
**/
public static final String MEDIA_TYPE = "mediaType";
/**
* A field same to a legacy server, key field.
*
*
* @since legacy
**/
public static final String FOLDER = "folder";
/**
* A field same to a legacy server, usually with common word parsing.
*
*
* @since legacy
**/
public static final String ARTIST = "artist";
/**
* A field same to a legacy server, usually with common word parsing.
*
*
* @since legacy
**/
public static final String ALBUM = "album";
/**
* A field same to a legacy server, usually with common word parsing.
*
*
* @since legacy
**/
public static final String TITLE = "title";

@ -54,7 +54,7 @@ import static org.springframework.util.ObjectUtils.isEmpty;
/**
* Function class that is strongly linked to the lucene index implementation.
* Legacy has an implementation in SearchService.
*
*
* If the index CRUD and search functionality are in the same class,
* there is often a dependency conflict on the class used.
* Although the interface of SearchService is left to maintain the legacy implementation,
@ -68,7 +68,7 @@ public class IndexManager {
/**
* Schema version of Airsonic index.
* It may be incremented in the following cases:
*
*
* - Incompatible update case in Lucene index implementation
* - When schema definition is changed due to modification of AnalyzerFactory,
* DocumentFactory or the class that they use.

@ -44,7 +44,7 @@ public enum IndexType {
ALBUM(
fieldNames(
FieldNames.ALBUM,
FieldNames.ARTIST),
FieldNames.ARTIST),
// FieldNames.FOLDER), // XXX 3.x -> 8.x : Remove folder from multi-field search condition
boosts(
entry(FieldNames.ALBUM, 1.1F))),
@ -72,7 +72,7 @@ public enum IndexType {
/**
* Define the field's applied boost value when searching IndexType.
*
*
* @param entry {@link #entry(String, float)}.
* When specifying multiple values, enumerate entries.
* @return Map of boost values to be applied to the field
@ -86,7 +86,7 @@ public enum IndexType {
/**
* Create an entry representing the boost value for the field.
*
*
* @param k Field name defined by FieldNames
* @param v Boost value
*/
@ -114,7 +114,7 @@ public enum IndexType {
/**
* Returns a map of fields and boost values.
*
*
* @return Map of fields and boost values
* @since legacy
* @see org.apache.lucene.search.BoostQuery
@ -125,7 +125,7 @@ public enum IndexType {
/**
* Return some of the fields defined in the index.
*
*
* @return Fields mainly used in multi-field search
* @since legacy
*/

@ -95,7 +95,7 @@ public class QueryFactory {
* XXX 3.x -> 8.x :
* In order to support wildcards,
* MultiFieldQueryParser has been replaced by the following process.
*
*
* - There is also an override of MultiFieldQueryParser, but it is known to be high cost.
* - MultiFieldQueryParser was created before Java API was modernized.
* - The spec of Parser has changed from time to time. Using parser does not reduce library update risk.
@ -163,7 +163,7 @@ public class QueryFactory {
/**
* Query generation expression extracted from
* {@link org.airsonic.player.service.SearchService#search(SearchCriteria, List, IndexType)}.
*
*
* @param criteria criteria
* @param musicFolders musicFolders
* @param indexType {@link IndexType}
@ -192,9 +192,9 @@ public class QueryFactory {
public Query getRandomSongs(RandomSearchCriteria criteria) throws IOException {
BooleanQuery.Builder query = new BooleanQuery.Builder();
Analyzer analyzer = analyzerFactory.getQueryAnalyzer();
// Unanalyzed field
query.add(new TermQuery(new Term(FieldNames.MEDIA_TYPE, MediaType.MUSIC.name())), Occur.MUST);
@ -222,7 +222,7 @@ public class QueryFactory {
/**
* Query generation expression extracted from
* {@link org.airsonic.player.service.SearchService#searchByName( String, String, int, int, List, Class)}.
*
*
* @param fieldName {@link FieldNames}
* @return Query
* @throws IOException When parsing of QueryParser fails
@ -263,7 +263,7 @@ public class QueryFactory {
/**
* Query generation expression extracted from
* {@link org.airsonic.player.service.SearchService#getRandomAlbums(int, List)}.
*
*
* @param musicFolders musicFolders
* @return Query
*/
@ -276,7 +276,7 @@ public class QueryFactory {
/**
* Query generation expression extracted from
* {@link org.airsonic.player.service.SearchService#getRandomAlbumsId3(int, List)}.
*
*
* @param musicFolders musicFolders
* @return Query
*/

@ -93,7 +93,7 @@ public class SearchServiceImpl implements SearchService {
/**
* Common processing of random method.
*
*
* @param count Number of albums to return.
* @param id2ListCallBack Callback to get D from id and store it in List
*/

@ -43,11 +43,11 @@ import static org.springframework.util.ObjectUtils.isEmpty;
/**
* Termination used by SearchService.
*
*
* Since SearchService operates as a proxy for storage (DB) using lucene,
* there are many redundant descriptions different from essential data processing.
* This class is a transfer class for saving those redundant descriptions.
*
*
* Exception handling is not termination,
* so do not include exception handling in this class.
*/

@ -145,7 +145,7 @@ public final class StringUtil {
NumberFormat teraByteFormat = new DecimalFormat("0.00 TB", new DecimalFormatSymbols(locale));
return teraByteFormat.format(byteCount / ((double) 1024 * 1024 * 1024 * 1024));
}
// More than 1 GB?
if (byteCount >= 1024L * 1024 * 1024) {
NumberFormat gigaByteFormat = new DecimalFormat("0.00 GB", new DecimalFormatSymbols(locale));

@ -647,7 +647,7 @@ lyrics.trylater=Sorry, the lyrics search engine allows just one search every 20
helppopup.title={0} Hj\u00E6lp
helppopup.transcode.title=Max bitrate
helppopup.transcode.text= Hvis du har begr\u00E6nset b\u00E5ndbredde, kan du s\u00E6tte en \u00F8vre gr\u00E6nse for bithastighed af musikken str\u00F8mme. For eksempel, hvis din oprindelige mp3 filer er kodet ved hj\u00E6lp af 256 Kbps (kilobit pr sekund), fasts\u00E6ttelse af max bitrate til 128 vil g\u00F8re {0} automatisk resample musikken fra 256 til 128 Kbps.
helppopup.transcode.text= Hvis du har begr\u00E6nset b\u00E5ndbredde, kan du s\u00E6tte en \u00F8vre gr\u00E6nse for bithastighed af musikken str\u00F8mme. For eksempel, hvis din oprindelige mp3 filer er kodet ved hj\u00E6lp af 256 Kbps (kilobit pr sekund), fasts\u00E6ttelse af max bitrate til 128 vil g\u00F8re {0} automatisk resample musikken fra 256 til 128 Kbps.
helppopup.databaseConfigType.title=Data Source Config Type
helppopup.databaseConfigType.text=Legacy will default to an embedded H2 database, which is the backwards compatible option. Embedded JDBC will connect to a JDBC database with the provided settings. JNDI will look up a DataSource connection already set up in your application container.
helppopup.mysqlvarcharmaxlength.title=MySQL Varchar Max Length
@ -661,61 +661,61 @@ helppopup.embeddriver.text=JDBC Driver dependent class name that implments java.
helppopup.excludepattern.title=Exclude Pattern
helppopup.excludepattern.text=Airsonic will not import any files matching this regular expression pattern.
helppopup.playlistfolder.title=Playlist mappe
helppopup.playlistfolder.text= Lader dig angive den mappe, hvor dine spillelister er beliggende.
helppopup.playlistfolder.text= Lader dig angive den mappe, hvor dine spillelister er beliggende.
helppopup.musicmask.title=Music maske
helppopup.musicmask.text= Lader dig angive den type filer, der skal anerkendes som medie, n\u00E5r du browser gennem medie mappe.
helppopup.musicmask.text= Lader dig angive den type filer, der skal anerkendes som medie, n\u00E5r du browser gennem medie mappe.
helppopup.videomask.title=Video maske
helppopup.videomask.text=<p> Lader dig angive, hvilken type filer, der skal genkendes som video.</ p>
helppopup.coverartmask.title=Cover maske
helppopup.coverartmask.text= Lader dig angive den type filer, der skal anerkendes som Cover n\u00E5r du browser gennem medie mappe.
helppopup.coverartmask.text= Lader dig angive den type filer, der skal anerkendes som Cover n\u00E5r du browser gennem medie mappe.
helppopup.downsamplecommand.title=Downsample kommando
helppopup.downsamplecommand.text= Lader dig angiver kommandoen til at udf\u00F8re, n\u00E5r downsampling til lavere bitrates. </p> <p> (% s = Filen skal downsamplet,% b = Max bithastighed af afspilleren)
helppopup.downsamplecommand.text= Lader dig angiver kommandoen til at udf\u00F8re, n\u00E5r downsampling til lavere bitrates. </p> <p> (% s = Filen skal downsamplet,% b = Max bithastighed af afspilleren)
helppopup.hlscommand.title=HTTP Live Streaming command
helppopup.hlscommand.text=The command used to create video segments for Apple''s HTTP Live Streaming (HLS) protocol.
helppopup.index.title=Indeks
helppopup.index.text= Lader dig angive, hvordan indekset (placeret \u00F8verst p\u00E5 sk\u00E6rmen) skal se ud. Filer og mapper direkte i roden medie mappe er nemt tilg\u00E6ngelige ved hj\u00E6lp af dette indeks. </p> <p> Varespecifikationen er et rum-separeret liste over opslagsord. Normalt hver indrejse er blot et enkelt tegn, men du kan ogs\u00E5 angive flere tegn. F.eks indrejse <em> </ em> vil linke til alle filer og mapper, der begynder med "I". </p> <p> Du kan ogs\u00E5 oprette en post ved hj\u00E6lp af en gruppe af indeks tegn i parentes. F.eks indrejse <em> AE (ABCDE) </ em> vises som <em> AE </ em> og link til alle filer og mapper, der begynder med enten A, B, C, D eller E. Det kan v\u00E6re nyttigt til at samle de mindre hyppigt anvendte tegn (s\u00E5dan og X, Y og Z) eller for gruppering accent tegn (s\u00E5som A, \u00C0 og \u00C1) </p> <p> filer og mapper, der ikke er omfattet af et opslagsord vil blive placeret under opslagsord "#".
helppopup.ignoredarticles.title=Ord som skal ignoreres
helppopup.ignoredarticles.text= Lader dig angive en liste over artikler (s\u00E5som "De"), som vil blive ignoreret, n\u00E5r der skabes indekset.
helppopup.ignoredarticles.text= Lader dig angive en liste over artikler (s\u00E5som "De"), som vil blive ignoreret, n\u00E5r der skabes indekset.
helppopup.shortcuts.title=Genveje
helppopup.shortcuts.text= A space-separeret liste over \u00F8verste niveau mapper til at oprette genveje til. Brug anf\u00F8rselstegn til at gruppere ord, for eksempel: </p> <p> <em> New Indg\u00E5ende "lydspor" </ em>
helppopup.shortcuts.text= A space-separeret liste over \u00F8verste niveau mapper til at oprette genveje til. Brug anf\u00F8rselstegn til at gruppere ord, for eksempel: </p> <p> <em> New Indg\u00E5ende "lydspor" </ em>
helppopup.language.title=Sprog
helppopup.language.text= Lader dig v\u00E6lge sprog til brug.
helppopup.language.text= Lader dig v\u00E6lge sprog til brug.
helppopup.visibility.title=Synlighed
helppopup.visibility.text= V\u00E6lg, hvilke oplysninger der skal vises for hver sang, samt billedtekst cutoff. Dette er den maksimale Antallet af tegn til at vise for sang titel, album og kunstner.
helppopup.visibility.text= V\u00E6lg, hvilke oplysninger der skal vises for hver sang, samt billedtekst cutoff. Dette er den maksimale Antallet af tegn til at vise for sang titel, album og kunstner.
helppopup.partymode.title=Fest indstilling
helppopup.partymode.text= N\u00E5r fest indstilling er aktiveret, brugergr\u00E6nsefladen er forenklet og lettere at betjene for ikke-erfarne brugere. Is\u00E6r utilsigtet Messing op afspilningslisten undg\u00E5s.
helppopup.partymode.text= N\u00E5r fest indstilling er aktiveret, brugergr\u00E6nsefladen er forenklet og lettere at betjene for ikke-erfarne brugere. Is\u00E6r utilsigtet Messing op afspilningslisten undg\u00E5s.
helppopup.theme.title=Tema
helppopup.theme.text= Lader dig v\u00E6lge tema til brug. Et tema definerer udseendet og fornemmelsen af {0} i form af farver, skrifter, billeder osv.
helppopup.theme.text= Lader dig v\u00E6lge tema til brug. Et tema definerer udseendet og fornemmelsen af {0} i form af farver, skrifter, billeder osv.
helppopup.welcomemessage.title=Velkomstmeddelelse
helppopup.welcomemessage.text= besked, der vises p\u00E5 hjemmesiden.
helppopup.welcomemessage.text= besked, der vises p\u00E5 hjemmesiden.
helppopup.loginmessage.title=Login besked
helppopup.loginmessage.text=Besked, der vises p\u00E5 loginsiden.
helppopup.coverartlimit.title=Cover gr\u00E6nse
helppopup.coverartlimit.text= Det maksimale antal Cover billeder skal vises p\u00E5 en enkelt side.
helppopup.coverartlimit.text= Det maksimale antal Cover billeder skal vises p\u00E5 en enkelt side.
helppopup.downloadlimit.title=Download gr\u00E6nse
helppopup.downloadlimit.text= en \u00F8vre gr\u00E6nse for, hvor meget b\u00E5ndbredde vil blive brugt til at downloade filer.
helppopup.downloadlimit.text= en \u00F8vre gr\u00E6nse for, hvor meget b\u00E5ndbredde vil blive brugt til at downloade filer.
helppopup.uploadlimit.title=Upload gr\u00E6nse
helppopup.uploadlimit.text= en \u00F8vre gr\u00E6nse for, hvor meget b\u00E5ndbredde vil blive brugt til at uploade filer.
helppopup.uploadlimit.text= en \u00F8vre gr\u00E6nse for, hvor meget b\u00E5ndbredde vil blive brugt til at uploade filer.
helppopup.streamport.title=Ikke-SSL stream havn
helppopup.streamport.text= Denne valgmulighed er kun relevant, hvis du bruger {0} p\u00E5 en server med SSL (HTTPS). </p> <p> Nogle spillere (s\u00E5som Winamp) don''t st\u00F8tte streaming via SSL. Angiv portnummeret for regelm\u00E6ssig http (normalt 80 eller 4040), hvis du don''t \u00F8nsker streams, der skal sendes via SSL. Bem\u00E6rk, at streams ikke vil v\u00E6re krypteret.
helppopup.streamport.text= Denne valgmulighed er kun relevant, hvis du bruger {0} p\u00E5 en server med SSL (HTTPS). </p> <p> Nogle spillere (s\u00E5som Winamp) don''t st\u00F8tte streaming via SSL. Angiv portnummeret for regelm\u00E6ssig http (normalt 80 eller 4040), hvis du don''t \u00F8nsker streams, der skal sendes via SSL. Bem\u00E6rk, at streams ikke vil v\u00E6re krypteret.
helppopup.ldap.title=LDAP autentificering
helppopup.ldap.text= Brugere kan blive bekr\u00E6ftet af en ekstern LDAP server (herunder Windows Active Directory). N\u00E5r LDAP-aktiverede brugere logge p\u00E5 {0}, brugernavnet og adgangskoden er kontrolleret af den eksterne server, ikke af {0} selv.
helppopup.ldap.text= Brugere kan blive bekr\u00E6ftet af en ekstern LDAP server (herunder Windows Active Directory). N\u00E5r LDAP-aktiverede brugere logge p\u00E5 {0}, brugernavnet og adgangskoden er kontrolleret af den eksterne server, ikke af {0} selv.
helppopup.ldapurl.title=LDAP URL
helppopup.ldapurl.text= Webadressen p\u00E5 LDAP-serveren. Protokollen skal enten v\u00E6re <em> ldap ://</ em> eller <em> ldaps ://</ em> (for LDAP over SSL). Se <a href="http://java.sun.com/products/jndi/tutorial/ldap/misc/url.html" target="_blank"> her </a> for en mere detaljeret beskrivelse.
helppopup.ldapurl.text= Webadressen p\u00E5 LDAP-serveren. Protokollen skal enten v\u00E6re <em> ldap ://</ em> eller <em> ldaps ://</ em> (for LDAP over SSL). Se <a href="http://java.sun.com/products/jndi/tutorial/ldap/misc/url.html" target="_blank"> her </a> for en mere detaljeret beskrivelse.
helppopup.ldapsearchfilter.title=LDAP s\u00F8gefilter
helppopup.ldapsearchfilter.text= Filteret udtryk anvendes i brugernes s\u00F8gning. Dette er et LDAP s\u00F8gefilter (som defineret i <a href="http://www.ietf.org/rfc/rfc2254.txt" target="_blank"> RFC 2254 </a>). M\u00F8nsteret "'{0}'" affattes brugernavn, for eksempel: <ul> <li> (uid = '{0}') - dette vil s\u00F8ge efter et brugernavn passer p\u00E5 uid attribut. </ li> <li> (sAMAccountName = '{0}') - typisk bruges til godkendelse i Microsoft Active Directory. </ li> </ ul>
helppopup.ldapsearchfilter.text= Filteret udtryk anvendes i brugernes s\u00F8gning. Dette er et LDAP s\u00F8gefilter (som defineret i <a href="http://www.ietf.org/rfc/rfc2254.txt" target="_blank"> RFC 2254 </a>). M\u00F8nsteret "'{0}'" affattes brugernavn, for eksempel: <ul> <li> (uid = '{0}') - dette vil s\u00F8ge efter et brugernavn passer p\u00E5 uid attribut. </ li> <li> (sAMAccountName = '{0}') - typisk bruges til godkendelse i Microsoft Active Directory. </ li> </ ul>
helppopup.ldapmanagerdn.title=LDAP manager DN
helppopup.ldapmanagerdn.text= Hvis LDAP-serveren doesn''t st\u00F8tte anonyme bindende skal du angive DN (<em> Distinguished Name </ em>) og din adgangskode i LDAP bruger til bruger, n\u00E5r bindende.
helppopup.ldapmanagerdn.text= Hvis LDAP-serveren doesn''t st\u00F8tte anonyme bindende skal du angive DN (<em> Distinguished Name </ em>) og din adgangskode i LDAP bruger til bruger, n\u00E5r bindende.
helppopup.ldapautoshadowing.title=automatisk oprette LDAP brugere i {0}
helppopup.ldapautoshadowing.text= Med denne indstilling v\u00E6lges, LDAP brugere don''t skal manuelt oprettede i {0} f\u00F8r logger p\u00E5. </p> <p> BEM\u00C6RK! Det betyder, at alle brugere med en gyldig LDAP brugernavn og kodeord kan logge p\u00E5 {0}, som m\u00E5ske ikke er, hvad du vil.
helppopup.ldapautoshadowing.text= Med denne indstilling v\u00E6lges, LDAP brugere don''t skal manuelt oprettede i {0} f\u00F8r logger p\u00E5. </p> <p> BEM\u00C6RK! Det betyder, at alle brugere med en gyldig LDAP brugernavn og kodeord kan logge p\u00E5 {0}, som m\u00E5ske ikke er, hvad du vil.
helppopup.playername.title=Spiller navn
helppopup.playername.text= Lader dig angiver en nem at huske navnet p\u00E5 en spiller, som "Work" eller "Stue".
helppopup.playername.text= Lader dig angiver en nem at huske navnet p\u00E5 en spiller, som "Work" eller "Stue".
helppopup.autocontrol.title=Control afspilleren automatisk
helppopup.autocontrol.text= Med denne indstilling v\u00E6lges, {0} vil automatisk starte afspilleren, n\u00E5r du klikker p\u00E5 "play" p\u00E5 afspilningslisten. Ellers skal du begynde og slutte spilleren selv.
helppopup.autocontrol.text= Med denne indstilling v\u00E6lges, {0} vil automatisk starte afspilleren, n\u00E5r du klikker p\u00E5 "play" p\u00E5 afspilningslisten. Ellers skal du begynde og slutte spilleren selv.
helppopup.m3ubom.title=Apply BOM in M3U file
helppopup.m3ubom.text=Apply a BOM mark in generated M3U playlists for Unicode compatibility.
helppopup.dynamicip.title=dynamisk IP-adresse
helppopup.dynamicip.text= Sl\u00E5 denne mulighed, hvis spilleren anvender en statisk IP-adresse.
helppopup.dynamicip.text= Sl\u00E5 denne mulighed, hvis spilleren anvender en statisk IP-adresse.
helppopup.smtpServer.title=SMTP Server
helppopup.smtpServer.text=The hostname of the SMTP server. This server will be used to send e-mails to users who have requested a password reset.
helppopup.smtpPort.title=SMTP Port

@ -647,7 +647,7 @@ lyrics.trylater=Sorry, the lyrics search engine allows just one search every 20
helppopup.title={0} Hj\u00E1lp
helppopup.transcode.title=Max Bitrate
helppopup.transcode.text= Ef \u00FE\u00FA ert nau\u00F0ugur bandwidth, getur \u00FE\u00FA sett efri m\u00F6rk fyrir bitrate \u00E1 t\u00F3nlist \u00E1. Fyrir d\u00E6mi, ef \u00FEinn frumeintak MP3 skr\u00E1r eru umrita \u00ED dulm\u00E1l me\u00F0 256 Kbps (kilobits \u00E1 sek\u00FAndu), setja max bitrate til 128 vilja gera (0) sj\u00E1lfkrafa resample t\u00F3nlistin 256-128 Kbps.
helppopup.transcode.text= Ef \u00FE\u00FA ert nau\u00F0ugur bandwidth, getur \u00FE\u00FA sett efri m\u00F6rk fyrir bitrate \u00E1 t\u00F3nlist \u00E1. Fyrir d\u00E6mi, ef \u00FEinn frumeintak MP3 skr\u00E1r eru umrita \u00ED dulm\u00E1l me\u00F0 256 Kbps (kilobits \u00E1 sek\u00FAndu), setja max bitrate til 128 vilja gera (0) sj\u00E1lfkrafa resample t\u00F3nlistin 256-128 Kbps.
helppopup.databaseConfigType.title=Data Source Config Type
helppopup.databaseConfigType.text=Legacy will default to an embedded H2 database, which is the backwards compatible option. Embedded JDBC will connect to a JDBC database with the provided settings. JNDI will look up a DataSource connection already set up in your application container.
helppopup.mysqlvarcharmaxlength.title=MySQL Varchar Max Length

@ -711,7 +711,7 @@ helppopup.ldapautoshadowing.text=With this option selected, LDAP users don''t ha
helppopup.playername.title=\uC7AC\uC0DD\uAE30 \uC774\uB984
helppopup.playername.text="\uAC70\uC2E4"\uC774\uB098 "\uC11C\uC7AC" \uAC19\uC740 \uAE30\uC5B5\uD558\uAE30 \uC26C\uC6B4 \uC774\uB984\uC744 \uC7AC\uC0DD\uAE30\uC5D0 \uC9C0\uC815\uD569\uB2C8\uB2E4.
helppopup.autocontrol.title=\uC7AC\uC0DD\uAE30\uB97C \uC790\uB3D9\uC73C\uB85C \uC81C\uC5B4
helppopup.autocontrol.text=\uC774 \uC635\uC158\uC774 \uC120\uD0DD\uB418\uC5B4 \uC788\uB2E4\uBA74, "\uC7AC\uC0DD" \uBC84\uD2BC\uC744 \uB204\uB974\uBA74 \uC7AC\uC0DD\uBAA9\uB85D\uC5D0\uC11C {0} \uC774(\uAC00) \uC790\uB3D9\uC73C\uB85C \uC7AC\uC0DD\uC744 \uC2DC\uC791\uD569\uB2C8\uB2E4. \uADF8\uB807\uC9C0 \uC54A\uB2E4\uBA74, \uB2F9\uC2E0\uC740 \uC2DC\uC791\uD558\uACE0 \uC7AC\uC0DD\uAE30\uB97C \uC9C1\uC811 \uC5F0\uACB0\uD574\uC57C \uD569\uB2C8\uB2E4.
helppopup.autocontrol.text=\uC774 \uC635\uC158\uC774 \uC120\uD0DD\uB418\uC5B4 \uC788\uB2E4\uBA74, "\uC7AC\uC0DD" \uBC84\uD2BC\uC744 \uB204\uB974\uBA74 \uC7AC\uC0DD\uBAA9\uB85D\uC5D0\uC11C {0} \uC774(\uAC00) \uC790\uB3D9\uC73C\uB85C \uC7AC\uC0DD\uC744 \uC2DC\uC791\uD569\uB2C8\uB2E4. \uADF8\uB807\uC9C0 \uC54A\uB2E4\uBA74, \uB2F9\uC2E0\uC740 \uC2DC\uC791\uD558\uACE0 \uC7AC\uC0DD\uAE30\uB97C \uC9C1\uC811 \uC5F0\uACB0\uD574\uC57C \uD569\uB2C8\uB2E4.
helppopup.m3ubom.title=Apply BOM in M3U file
helppopup.m3ubom.text=Apply a BOM mark in generated M3U playlists for Unicode compatibility.
helppopup.dynamicip.title=\uB3D9\uC801 IP \uC8FC\uC18C

@ -301,7 +301,7 @@ public class PlayQueueTestCase extends TestCase {
public String getAlbumName() {
return album;
}
@Override
public File getFile() {
return new File(name);

@ -81,7 +81,7 @@ public abstract class AbstractAirsonicHomeTest implements AirsonicHomeTest {
public AtomicBoolean dataBaseReady() {
return dataBaseReady;
}
@Override
public final void populateDatabaseOnlyOnce() {
if (!dataBasePopulated().get()) {

@ -13,7 +13,7 @@ public interface AirsonicHomeTest {
/**
* MusicFolder used by test class.
*
*
* @return MusicFolder used by test class
*/
default List<MusicFolder> getMusicFolders() {
@ -22,7 +22,7 @@ public interface AirsonicHomeTest {
/**
* Whether the data input has been completed.
*
*
* @return Static AtomicBoolean indicating whether the data injection has been
* completed
*/
@ -30,12 +30,12 @@ public interface AirsonicHomeTest {
/**
* Whether the data input has been completed.
*
*
* @return Static AtomicBoolean indicating whether the data injection has been
* completed
*/
abstract AtomicBoolean dataBaseReady();
/**
* Populate the database only once.
* It is called in the @Before granted method.

@ -156,7 +156,7 @@ public class AnalyzerFactoryTestCase {
/**
* Detailed tests on Stopward.
*
*
* @see org.apache.lucene.analysis.core.StopAnalyzer#ENGLISH_STOP_WORDS_SET
*/
@Test
@ -275,7 +275,7 @@ public class AnalyzerFactoryTestCase {
terms = toTermString(queryFullWidth);
/*
* XXX 3.x -> 8.x :
*
*
* This is not a change due to the library but an intentional change.
* The filter order has been changed properly
* as it is probably not a deliberate specification.
@ -477,7 +477,7 @@ public class AnalyzerFactoryTestCase {
assertEquals("walker", terms.get(2));
assertEquals("nash", terms.get(3));
assertEquals("ensemble", terms.get(4));
// Space
assertEquals(asList("abc", "def"), toTermString(" ABC DEF "));
assertEquals(asList("abc1", "def"), toTermString(" ABC1 DEF "));
@ -655,7 +655,7 @@ public class AnalyzerFactoryTestCase {
assertEquals(1, terms.size());
assertEquals("{ }", terms.get(0));
}
private List<String> toTermString(String str) {
return toTermString(null, str);
}

@ -174,7 +174,7 @@ public class IndexManagerTestCase extends AbstractAirsonicHomeTest {
indexManager.expunge();
indexManager.stopIndexing(indexManager.getStatistics());
/*
/*
* Subsequent search results.
* Results can also be confirmed with Luke.
*/

@ -65,7 +65,7 @@ public class QueryFactoryTestCase {
private static final MusicFolder MUSIC_FOLDER1 =
new MusicFolder(FID1, new File(PATH1), "music1", true, new java.util.Date());
private static final MusicFolder MUSIC_FOLDER2 =
private static final MusicFolder MUSIC_FOLDER2 =
new MusicFolder(FID2, new File(PATH2), "music2", true, new java.util.Date());
private static final List<MusicFolder> SINGLE_FOLDERS = Arrays.asList(MUSIC_FOLDER1);
@ -76,7 +76,7 @@ public class QueryFactoryTestCase {
* XXX 3.x -> 8.x :
* It does not change the basic functional requirements for the query.
* However, some minor improvements are included.
*
*
* - Use 'Or' instead of 'SpanOr'.
* This is suitable for 8.x document definition and query grammar.
* A more rigorous comparison.
@ -89,7 +89,7 @@ public class QueryFactoryTestCase {
* Currently, these are "key" strings, both in the requirements and in the implementation.
* The legacy "normalize" is dirty code that compensates for the incomplete analytics implementation
* and is not necessary as long as proper key comparison can be done.
*
*
* => Treating these strictly as keys enables DB reference.
* For example, can support multi-genre by creating a new genre field that implements another Tokenizer.
*

@ -48,12 +48,12 @@ public class SearchServiceSpecialGenreTestCase extends AbstractAirsonicHomeTest
* in src/test/resources/MEDIAS/Search/SpecialGenre/ARTIST1/ALBUM_A.
* In FILE01 to FILE16, Special strings for Lucene syntax are stored
* as tag values of Genre.
*
*
* Legacy can not search all these genres.
* (Strictly speaking, the genre field is not created at index creation.)
*
* // XXX 3.x -> 8.x : Do the process more strictly.
*
*
* - Values that can be cross-referenced with DB are stored in the index.
* - Search is also possible with user's readable value (file tag value).
* - However, there is an exception in parentheses.
@ -91,10 +91,10 @@ public class SearchServiceSpecialGenreTestCase extends AbstractAirsonicHomeTest
/*
* // XXX 3.x -> 8.x : Brackets ()
*
*
* Lucene can handle these.
* However, brackets are specially parsed before the index creation process.
*
*
* This string is never stored in the index.
* This is the only exception.
*/
@ -106,16 +106,16 @@ public class SearchServiceSpecialGenreTestCase extends AbstractAirsonicHomeTest
/*
* // XXX 3.x -> 8.x : Brackets {}[]
*
*
* Lucene can handle these.
* However, brackets are specially parsed before the index creation process.
*
*
* This can be done with a filter that performs the reverse process
* on the input values when searching.
* As a result, the values stored in the file can be retrieved by search.
*
*
* @see AnalyzerFactory
*
*
* >>>>>
*/
songs = searchService.getRandomSongs(simpleStringCriteria.apply("{}"));
@ -204,7 +204,7 @@ public class SearchServiceSpecialGenreTestCase extends AbstractAirsonicHomeTest
/*
* Search by genre string registered in file.
*
*
* The value stored in the index is different from legacy.
* Domain value is kept as it is.
*/
@ -256,12 +256,12 @@ public class SearchServiceSpecialGenreTestCase extends AbstractAirsonicHomeTest
/*
* Other special strings. (FILE19)
*
*
* {'[@ $+]FULLWIDTHCæsar's
*
*
* Legacy stores with Analyze,
* so searchable characters are different.
*
*
*/
@Test
public void testOthers() {

@ -20,10 +20,10 @@ import static org.springframework.util.ObjectUtils.isEmpty;
/*
* Test cases related to #1139.
* Confirming whether shuffle search can be performed correctly in MusicFolder containing special strings.
*
*
* (Since the query of getRandomAlbums consists of folder paths only,
* this verification is easy to perform.)
*
*
* This test case is a FalsePattern for search,
* but there may be problems with the data flow prior to creating the search index.
*/

@ -20,7 +20,7 @@ import static org.springframework.util.ObjectUtils.isEmpty;
/*
* Test cases related to #1142.
* The filter is not properly applied when analyzing the query,
*
*
* In the process of hardening the Analyzer implementation,
* this problem is solved side by side.
*/

@ -55,7 +55,7 @@ public class SearchServiceTestCase extends AbstractAirsonicHomeTest {
List<MusicFolder> allMusicFolders = musicFolderDao.getAllMusicFolders();
Assert.assertEquals(3, allMusicFolders.size());
// *** testSearch() ***
String query = "Sarah Walker";

@ -10,6 +10,11 @@
<property name="fileExtensions" value="java, properties, xml"/>
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="message" value="Unnecessary trailing whitespace"/>
</module>
<module name="FileTabCharacter"/>
<!-- This is a temporary workaround until ^M line endings is added to upstream checkstyle -->

Loading…
Cancel
Save