Skip to content

Commit

Permalink
Removed hyphen from params in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyc committed Nov 3, 2022
1 parent 226d20c commit e6da1ba
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ CallableStatement prepareCall(String sql, int nType, int nConcur, int nHold,
* This method is a no-op for backwards compatibility only.
*
* @param timeToLive
* - Time-to-live is no longer supported.
* Time-to-live is no longer supported.
*/
@Deprecated
void setMsiTokenCacheTtl(int timeToLive);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ public interface ISQLServerDataSource extends javax.sql.CommonDataSource {
* Sets the {@link SQLServerAccessTokenCallback} delegate.
*
* @param accessTokenCallback
* - Access token callback delegate.
* Access token callback delegate.
*/
void setAccessTokenCallback(SQLServerAccessTokenCallback accessTokenCallback);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,7 @@ public int getMsiTokenCacheTtl() {
* Sets the {@link SQLServerAccessTokenCallback} delegate.
*
* @param accessTokenCallback
* - Access token callback delegate.
* Access token callback delegate.
*/
@Override
public void setAccessTokenCallback(SQLServerAccessTokenCallback accessTokenCallback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public class SqlAuthenticationToken implements Serializable {
* Contructs a SqlAuthentication token.
*
* @param accessToken
* - The access token string.
* The access token string.
* @param expiresOn
* - The expiration date in seconds since the unix epoch.
* The expiration date in seconds since the unix epoch.
*/
public SqlAuthenticationToken(String accessToken, long expiresOn) {
this.accessToken = accessToken;
Expand All @@ -41,9 +41,9 @@ public SqlAuthenticationToken(String accessToken, long expiresOn) {
* Contructs a SqlAuthentication token.
*
* @param accessToken
* - The access token string.
* The access token string.
* @param expiresOn
* - The expiration date.
* The expiration date.
*/
public SqlAuthenticationToken(String accessToken, Date expiresOn) {
this.accessToken = accessToken;
Expand Down
16 changes: 16 additions & 0 deletions src/samples/azureactivedirectoryauthentication/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@
</plugins>
</build>
</profile>
<profile>
<id>AzureActiveDirectoryAccessTokenCallback</id>
<build>
<finalName>AzureActiveDirectoryAccessTokenCallback</finalName>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<mainClass>azureactivedirectoryauthentication.src.main.java.AzureActiveDirectoryAccessTokenCallback</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
Expand Down

0 comments on commit e6da1ba

Please sign in to comment.