Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Update deprecated reference
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit f94f440
Author: Alex Eng <aeng@redhat.com>
Date:   Mon May 18 07:41:53 2015 +1000

    Remove unused class

commit b946021
Author: Alex Eng <aeng@redhat.com>
Date:   Fri May 15 12:50:03 2015 +1000

    Update deprecated reference
  • Loading branch information
Alex Eng committed May 18, 2015
1 parent be308e9 commit 6d37c66
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 289 deletions.
203 changes: 0 additions & 203 deletions zanata-common-api/src/main/java/org/zanata/rest/GenerateSamples.java

This file was deleted.

This file was deleted.

Expand Up @@ -51,10 +51,15 @@
@Consumes({ MediaType.APPLICATION_OCTET_STREAM })
public interface IFileResource extends FileResource {

/**
* Deprecated.
* @see #acceptedFileTypeList
*/
@Override
@GET
@Path(ACCEPTED_TYPES_RESOURCE)
@Produces(MediaType.TEXT_PLAIN)
@Deprecated
public
ClientResponse<String> acceptedFileTypes();

Expand Down
Expand Up @@ -11,7 +11,7 @@
* build request URLs for resources whose @Path includes a @PathParam.
* </p>
*/
@edu.umd.cs.findbugs.annotations.SuppressWarnings(
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
value = "NM_SAME_SIMPLE_NAME_AS_INTERFACE",
justification = "Package-private, with nice names for documentation")
package org.zanata.rest.enunciate;
Expand Up @@ -50,7 +50,7 @@ public void setGetUnitCount() {
assertThat((int) stats.getApproved(), equalTo(unitCount.getApproved()));
assertThat((int) stats.getRejected(), equalTo(unitCount.getRejected()));
assertThat((int) stats.getTotal(), equalTo(unitCount.getTotal()));
assertThat((int) stats.getTranslated(),
assertThat((int) stats.getTranslatedAndApproved(),
equalTo(unitCount.getTranslated() + unitCount.getApproved()));
assertThat((int) stats.getUntranslated(),
equalTo(unitCount.getUntranslated()));
Expand All @@ -69,7 +69,7 @@ public void setGetWordCount() {
assertThat((int) stats.getApproved(), equalTo(wordCount.getApproved()));
assertThat((int) stats.getRejected(), equalTo(wordCount.getRejected()));
assertThat((int) stats.getTotal(), equalTo(wordCount.getTotal()));
assertThat((int) stats.getTranslated(),
assertThat((int) stats.getTranslatedAndApproved(),
equalTo(wordCount.getTranslated() + wordCount.getApproved()));
assertThat((int) stats.getUntranslated(),
equalTo(wordCount.getUntranslated()));
Expand Down Expand Up @@ -99,7 +99,7 @@ public void add() {
assertThat((int) stats.getApproved(), equalTo(unitCount.getApproved()));
assertThat((int) stats.getRejected(), equalTo(unitCount.getRejected()));
assertThat((int) stats.getTotal(), equalTo(unitCount.getTotal()));
assertThat((int) stats.getTranslated(), equalTo(unitCount.getApproved()
assertThat((int) stats.getTranslatedAndApproved(), equalTo(unitCount.getApproved()
+ unitCount.getTranslated()));
assertThat((int) stats.getUntranslated(),
equalTo(unitCount.getUntranslated()));
Expand Down

0 comments on commit 6d37c66

Please sign in to comment.