Skip to content

Commit

Permalink
addressing code quality issues #EA-3723
Browse files Browse the repository at this point in the history
  • Loading branch information
gsergiu committed Mar 4, 2024
1 parent ad46bed commit 158566b
Show file tree
Hide file tree
Showing 11 changed files with 325 additions and 328 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class AbstractAnnotation implements Annotation, AnnotationView {
private Date generated;
private Body body;
private Target target;
private String motivation;
protected String motivation;
private Style styledBy;
protected MotivationTypes motivationType;
private Date disabled;
Expand Down Expand Up @@ -244,7 +244,7 @@ public MotivationTypes getMotivationType() {
}

@Override
public final void setMotivation(String motivation) {
public void setMotivation(String motivation) {
this.motivation = motivation;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class BaseCaptionAnnotation extends AbstractAnnotation implements Annotat

public BaseCaptionAnnotation(){
super();
setMotivation(MotivationTypes.CAPTIONING.getOaType());
motivation = MotivationTypes.CAPTIONING.getOaType();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class BaseDescribingAnnotation extends AbstractAnnotation implements Desc

public BaseDescribingAnnotation(){
super();
setMotivation(MotivationTypes.DESCRIBING.getOaType());
motivation =MotivationTypes.DESCRIBING.getOaType();

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class BaseImageAnnotation extends AbstractAnnotation implements ImageAnno

public BaseImageAnnotation(){
super();
setMotivation(MotivationTypes.COMMENTING.getOaType());
motivation = MotivationTypes.COMMENTING.getOaType();

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ public class BaseLinkForContributingAnnotation extends AbstractAnnotation implem

public BaseLinkForContributingAnnotation(){
super();
setMotivation(MotivationTypes.LINKFORCONTRIBUTING.getOaType());
motivation = MotivationTypes.LINKFORCONTRIBUTING.getOaType();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class BaseObjectLinking extends AbstractAnnotation implements ObjectTag {

public BaseObjectLinking() {
super();
setMotivation(MotivationTypes.LINKING.getOaType());
motivation = MotivationTypes.LINKING.getOaType();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class BaseObjectTag extends AbstractAnnotation implements ObjectTag {

public BaseObjectTag() {
super();
setMotivation(MotivationTypes.TAGGING.getOaType());
motivation = MotivationTypes.TAGGING.getOaType();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class BaseSubtitleAnnotation extends AbstractAnnotation implements Annota

public BaseSubtitleAnnotation(){
super();
setMotivation(MotivationTypes.SUBTITLING.getOaType());
motivation = MotivationTypes.SUBTITLING.getOaType();

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class BaseTranscriptionAnnotation extends AbstractAnnotation implements T

public BaseTranscriptionAnnotation(){
super();
setMotivation(MotivationTypes.TRANSCRIBING.getOaType());
motivation = MotivationTypes.TRANSCRIBING.getOaType();

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class BaseTranslationAnnotation extends AbstractAnnotation implements Tra
*/
public BaseTranslationAnnotation(){
super();
setMotivation(MotivationTypes.TRANSLATING.getOaType());
motivation = MotivationTypes.TRANSLATING.getOaType();
}

}
Loading

0 comments on commit 158566b

Please sign in to comment.