Skip to content

Commit

Permalink
fix sonarqube
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed Jan 30, 2025
1 parent 0240c05 commit 054857a
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
*/
package com.redhat.rhn.domain.audit;

import java.io.Serializable;

/**
* XccdfBenchmark - Class representation of the table rhnXccdfBenchmark.
*/
public class XccdfBenchmark {
public class XccdfBenchmark implements Serializable {

private Long id;
private String identifier;
Expand Down
4 changes: 3 additions & 1 deletion java/code/src/com/redhat/rhn/domain/audit/XccdfProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
*/
package com.redhat.rhn.domain.audit;

import java.io.Serializable;

/**
* XccdfProfile - Class representation of the table rhnXccdfProfile.
*/
public class XccdfProfile {
public class XccdfProfile implements Serializable {

private Long id;
private String identifier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
*/
package com.redhat.rhn.domain.audit;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
* XccdfRuleResult - Class representation of the table rhnXccdfRuleresult.
*/
public class XccdfRuleResult {
public class XccdfRuleResult implements Serializable {

private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;
import java.util.Date;

/**
* MgrServerInfo
*/
public class MgrServerInfo {
public class MgrServerInfo implements Serializable {

private Server server;
private PackageEvr version;
Expand Down
4 changes: 3 additions & 1 deletion java/code/src/com/redhat/rhn/domain/server/ProxyInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;


/**
* @author paji
*/
public class ProxyInfo {
public class ProxyInfo implements Serializable {
private Server server;
private PackageEvr version;
private Long id;
Expand Down
3 changes: 2 additions & 1 deletion java/code/src/com/redhat/rhn/domain/server/PushClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
*/
package com.redhat.rhn.domain.server;

import java.io.Serializable;
import java.util.Date;

/**
* PushClient - Class representation of the table rhnpushclient.
*/
public class PushClient {
public class PushClient implements Serializable {

private Long id;
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*/
package com.redhat.rhn.domain.server;

import java.io.Serializable;
import java.util.Map;

import javax.persistence.Column;
Expand All @@ -28,7 +29,7 @@

@Entity
@Table(name = "suseServerAppstream")
public class ServerAppStream {
public class ServerAppStream implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "appstreams_servermodule_seq")
@SequenceGenerator(name = "appstreams_servermodule_seq", sequenceName = "suse_as_servermodule_seq",
Expand Down
3 changes: 2 additions & 1 deletion java/code/src/com/redhat/rhn/domain/server/ServerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
*/
package com.redhat.rhn.domain.server;

import java.io.Serializable;
import java.util.Date;

/**
* ServerInfo - Class representation of the table rhnServerInfo
*/
public class ServerInfo {
public class ServerInfo implements Serializable {

private Long id;
private Server server;
Expand Down
3 changes: 2 additions & 1 deletion java/code/src/com/redhat/rhn/domain/server/ServerLock.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

import com.redhat.rhn.domain.user.User;

import java.io.Serializable;
import java.util.Date;

/**
* ServerLock - Class representation of the table rhnServerLock.
*/
public class ServerLock {
public class ServerLock implements Serializable {

private Long id;
private Server server;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class StateRevision {
private Long id;

@OneToMany(mappedBy = "stateRevision", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private Set<PackageState> packageStates = new HashSet<>();;
private Set<PackageState> packageStates = new HashSet<>();

@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@JoinTable(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

import com.redhat.rhn.domain.channel.Channel;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
Expand All @@ -28,7 +30,7 @@

@Entity
@Table(name = "suseRegTokenChannelAppStream")
public class TokenChannelAppStream {
public class TokenChannelAppStream implements Serializable {

/**
* Constructs a TokenChannelAppStream instance.
Expand Down
3 changes: 2 additions & 1 deletion java/code/src/com/redhat/rhn/taskomatic/domain/TaskoRun.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@

import com.redhat.rhn.taskomatic.TaskoFactory;

import java.io.Serializable;
import java.util.Date;


/**
* TaskoRun
*/
public class TaskoRun {
public class TaskoRun implements Serializable {

public static final String STATUS_READY_TO_RUN = "READY";
public static final String STATUS_RUNNING = "RUNNING";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
Expand All @@ -32,7 +34,7 @@

@Entity
@Table(name = "suseServerCoCoAttestationConfig")
public class ServerCoCoAttestationConfig {
public class ServerCoCoAttestationConfig implements Serializable {
private Long id;
private Server server;
private boolean enabled;
Expand Down

0 comments on commit 054857a

Please sign in to comment.