Skip to content
This repository was archived by the owner on Jun 27, 2021. It is now read-only.

Commit 13e3935

Browse files
committed
Quality fixes, added Javadocs.
1 parent e2d27d1 commit 13e3935

11 files changed

+23
-23
lines changed

src/main/java/javax/money/CurrencyQuery.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* <li>a target timestamp / temporal unit, when the {@link CurrencyUnit} instances should be valid
2222
* <li>any other attributes, identified by the attribute type, e.g. regions, tenants etc.
2323
* </ul>
24-
* The effective attributes supported are only determined by the implementations of {@link org.javamoney.bp.api.spi
24+
* The effective attributes supported are only determined by the implementations of {@link javax.money.spi
2525
* .CurrencyProviderSpi}.
2626
* <p>
2727
* This class is immutable, serializable and thread-safe.

src/main/java/javax/money/MonetaryAmountFactoryQuery.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* </ul>
2323
* <p>This class is thread-safe, final and serializable.</p>
2424
*
25-
* @see MonetaryAmounts#getAmountFactory(MonetaryAmountFactoryQuery)
25+
* @see Monetary#getAmountFactory(MonetaryAmountFactoryQuery)
2626
* @see MonetaryAmountFactory
2727
*/
2828
public final class MonetaryAmountFactoryQuery extends AbstractQuery implements Serializable {
@@ -75,7 +75,7 @@ public Integer getPrecision() {
7575
*
7676
* @return the fixed scale flag, or null, if this attribute must not be considered.
7777
*/
78-
public Boolean getFixedScale() {
78+
public Boolean isFixedScale() {
7979
return getBoolean(KEY_FIXED_SCALE);
8080
}
8181

src/main/java/javax/money/MonetaryAmountFactoryQueryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* <p>
1717
* Note this class is NOT thread-safe.
1818
*
19-
* @see MonetaryAmounts#getAmountFactory(MonetaryAmountFactoryQuery)
19+
* @see Monetary#getAmountFactory(MonetaryAmountFactoryQuery)
2020
* @see MonetaryAmountFactory
2121
*/
2222
public final class MonetaryAmountFactoryQueryBuilder

src/main/java/javax/money/convert/ProviderContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import javax.money.AbstractContext;
1515

1616
/**
17-
* This class describes what kind of {@link ExchangeRate}s a {@link org.javamoney.bp.api.convert
17+
* This class describes what kind of {@link ExchangeRate}s a {@link javax.money.convert
1818
* .ExchangeRateProvider} delivers, including the provider's name, rate type and additional data.
1919
* By default such a context supports the following attributes:
2020
* <ul>

src/main/java/javax/money/convert/RateType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
package javax.money.convert;
1010

1111
/**
12-
* This enumeration defines the different type of rates that can be provided by {@link org.javamoney.bp.api.convert
12+
* This enumeration defines the different type of rates that can be provided by {@link javax.money.convert
1313
* .ExchangeRateProvider} implementations. Hereby the rate provider's {@link ProviderContext} can
1414
* contain
15-
* additional information about the rates provided. Similarly, when accessing {@link org.javamoney.bp.api.convert
15+
* additional information about the rates provided. Similarly, when accessing {@link javax.money.convert
1616
* .ExchangeRateProvider} or {@link CurrencyConversion} instances corresponding attributes can
1717
* be passed within an (optional) {@link ConversionContext}.
1818
*

src/main/java/javax/money/format/AmountFormatContextBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public AmountFormatContextBuilder setMonetaryAmountFactory(
103103
}
104104

105105
/**
106-
* Creates a new instance of {@link AmountFormatContext} that configures a {@link org.javamoney.bp.api.format
106+
* Creates a new instance of {@link AmountFormatContext} that configures a {@link javax.money.format
107107
* .MonetaryAmountFormat}.
108108
*
109109
* @return a new {@link AmountFormatContext} instance.

src/main/java/javax/money/format/MonetaryAmountFormat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* To obtain a <code>MonetaryAmountFormat</code> for a specific locale, including the default
2121
* locale, call {@link MonetaryFormats#getAmountFormat(java.util.Locale, String...)}.
2222
*
23-
* More complex formatting scenarios can be implemented by registering instances of {@link org.javamoney.bp.api.spi
23+
* More complex formatting scenarios can be implemented by registering instances of {@link javax.money.spi
2424
* .MonetaryAmountFormatProviderSpi}.
2525
* The spi implementation creates new instances of {@link MonetaryAmountFormat} based on the
2626
* <i>styleId</i> and <i> (arbitrary) attributes</i> passed within the {@link AmountFormatContext}.
@@ -129,7 +129,7 @@ public interface MonetaryAmountFormat extends MonetaryQuery<String> {
129129
* Additionally the effective implementation type returned can be determined by the
130130
* {@link javax.money.MonetaryContext} applied to the {@link MonetaryAmountFormat}.
131131
* This formatter will call
132-
* {@link javax.money.MonetaryAmounts#getDefaultAmountType()} and will use the result returned
132+
* {@link javax.money.Monetary#getDefaultAmountType()} and will use the result returned
133133
* to access a corresponding {@link javax.money.MonetaryAmountFactory} to of the instance
134134
* returned.
135135
*

src/main/java/javax/money/spi/MonetaryAmountFactoryProviderSpi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public interface MonetaryAmountFactoryProviderSpi<T extends MonetaryAmount>{
2323

2424
/**
2525
* Determines how the factory should be considered when querying for matching implementation
26-
* types calling {@link javax.money.MonetaryAmounts#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)} .
26+
* types calling {@link javax.money.Monetary#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)} .
2727
*
28-
* @see javax.money.MonetaryAmounts#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
28+
* @see javax.money.Monetary#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
2929
*/
3030
enum QueryInclusionPolicy{
3131
/**
@@ -49,10 +49,10 @@ enum QueryInclusionPolicy{
4949
/**
5050
* Method that determines if this factory should be considered for general evaluation of
5151
* matching {@link MonetaryAmount} implementation types when calling
52-
* {@link javax.money.MonetaryAmounts#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)}.
52+
* {@link javax.money.Monetary#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)}.
5353
*
5454
* @return {@code true} to include this factory into the evaluation.
55-
* @see javax.money.MonetaryAmounts#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
55+
* @see javax.money.Monetary#getAmountFactory(javax.money.MonetaryAmountFactoryQuery)
5656
*/
5757
QueryInclusionPolicy getQueryInclusionPolicy();
5858

src/main/java/javax/money/spi/MonetaryAmountsSingletonQuerySpi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import java.util.Collection;
1515

1616
/**
17-
* SPI (core) for the backing implementation of the {@link javax.money.MonetaryAmounts} singleton, implementing
17+
* SPI (core) for the backing implementation of the {@link javax.money.Monetary} singleton, implementing
1818
* the query functionality for amounts.
1919
*
2020
* @author Anatole Tresch
@@ -67,7 +67,7 @@ public interface MonetaryAmountsSingletonQuerySpi {
6767
Class<? extends MonetaryAmount> getAmountType(MonetaryAmountFactoryQuery query);
6868

6969
/**
70-
* Executes the query and returns the {@link javax.money.MonetaryAmount} implementation typea found.
70+
* Executes the query and returns the {@link javax.money.MonetaryAmount} implementation types found.
7171
*
7272
* @param query the factory query, not null.
7373
* @return the type found, or null.

src/main/java/javax/money/spi/MonetaryFormatsSingletonSpi.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface MonetaryFormatsSingletonSpi {
3232
Set<Locale> getAvailableLocales(String... providers);
3333

3434
/**
35-
* Access all {@link javax.money.format.MonetaryAmountFormat} instances matching the given {@link org.javamoney.bp.api.format
35+
* Access all {@link javax.money.format.MonetaryAmountFormat} instances matching the given {@link javax.money.format
3636
* .AmountFormatQuery}.
3737
*
3838
* @param formatQuery The format query defining the requirements of the formatters.
@@ -55,19 +55,19 @@ public interface MonetaryFormatsSingletonSpi {
5555
List<String> getDefaultProviderChain();
5656

5757
/**
58-
* Access an {@link javax.money.format.MonetaryAmountFormat} given a {@link org.javamoney.bp.api.format
58+
* Access an {@link javax.money.format.MonetaryAmountFormat} given a {@link javax.money.format
5959
* .AmountFormatQuery}.
6060
*
6161
* @param formatQuery The format query defining the requirements of the formatter.
6262
* @return the corresponding {@link javax.money.format.MonetaryAmountFormat}
63-
* @throws javax.money.MonetaryException if no registered {@link org.javamoney.bp.api.spi
63+
* @throws javax.money.MonetaryException if no registered {@link javax.money.spi
6464
* .MonetaryAmountFormatProviderSpi} can provide a
6565
* corresponding {@link javax.money.format.MonetaryAmountFormat} instance.
6666
*/
6767
MonetaryAmountFormat getAmountFormat(AmountFormatQuery formatQuery);
6868

6969
/**
70-
* Checks if a {@link javax.money.format.MonetaryAmountFormat} is available given a {@link org.javamoney.bp.api.format
70+
* Checks if a {@link javax.money.format.MonetaryAmountFormat} is available given a {@link javax.money.format
7171
* .AmountFormatQuery}.
7272
*
7373
* @param formatQuery The format query defining the requirements of the formatter.
@@ -76,7 +76,7 @@ public interface MonetaryFormatsSingletonSpi {
7676
boolean isAvailable(AmountFormatQuery formatQuery);
7777

7878
/**
79-
* Checks if a {@link javax.money.format.MonetaryAmountFormat} is available given a {@link org.javamoney.bp.api.format
79+
* Checks if a {@link javax.money.format.MonetaryAmountFormat} is available given a {@link javax.money.format
8080
* .AmountFormatQuery}.
8181
*
8282
* @param locale the target {@link java.util.Locale}, not {@code null}.

0 commit comments

Comments
 (0)