Skip to content

Commit

Permalink
minor sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddlet2666 committed Feb 27, 2024
1 parent 2ceb869 commit 290d693
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public class ViewData
// ----- constructors ---------------------------------------------------

/**
* Create ProxyData passing in the number of columns.
* Create ViewData passing in the number of columns.
*/
public ViewData()
{
Expand Down Expand Up @@ -122,10 +122,8 @@ public String preProcessReporterXML(VisualVMModel model, String sReporterXML)
// the report XML contains the following tokens that require substitution:
// %SERVICE_NAME%
// %VIEW_NAME%

Pair<String, String> selectedCache = model.getSelectedCache();

// see if we have domainPartition key
String sServiceName = null;
String sDomainPartition = null;

Expand All @@ -137,9 +135,9 @@ public String preProcessReporterXML(VisualVMModel model, String sReporterXML)
}

return sServiceName == null ? sReporterXML :
sReporterXML.replaceAll("%SERVICE_NAME%", escape(sServiceName) +
(sDomainPartition != null ? ",domainPartition=" + sDomainPartition : "") )
.replaceAll("%VIEW_NAME%", escape(selectedCache.getY()));
sReporterXML.replaceAll("%SERVICE_NAME%", escape(sServiceName) +
(sDomainPartition != null ? ",domainPartition=" + sDomainPartition : "") )
.replaceAll("%VIEW_NAME%", escape(selectedCache.getY()));
}

@Override
Expand Down

0 comments on commit 290d693

Please sign in to comment.