Showing 6,856 of 14,752 total issues
Method copyRow
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Integer copyRow(final ResultSet rs, final String tablename, final String parentTable, final Integer parentID) {
Integer result = null;
try {
String columns = "";
String vals = "";
- Create a ticketCreate a ticket
Method fileChanged
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void fileChanged(FilePanel source) {
set.setFileName(filePanel.getFileName());
try {
- Create a ticketCreate a ticket
Method getForeignVal
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private String getForeignVal(final String tablename, final int id, final String fields) {
String result = "";
String sql= "SELECT " + fields + " FROM " + DBKernel.delimitL(tablename) + " WHERE " + DBKernel.delimitL("ID") + "=" + id;
ResultSet rs = DBKernel.getResultSet(sql, false);
try {
- Create a ticketCreate a ticket
Method manageDouble
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Double manageDouble(PreparedStatement ps, PreparedStatement psUpdate, int lfdCol, HSSFCell cell) throws SQLException {
Double dbl = null;
if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
} else if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {
if (cell.getStringCellValue().trim().length() > 0 && !cell.getStringCellValue().equalsIgnoreCase("null")) {
- Create a ticketCreate a ticket
Method manageDate
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private Date manageDate(PreparedStatement ps, PreparedStatement psUpdate, int lfdCol, HSSFCell cell) throws SQLException {
Date result = null;
if (cell == null || cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {
} else if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {
if (cell.getStringCellValue().trim().length() > 0) {
- Create a ticketCreate a ticket
Method loadNodeIDs10000
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private HashMap<String, Integer> loadNodeIDs10000() {
System.err.println("loadNodeIDs10000...");
nodeIds = new HashMap<String, Integer>();
try {
- Create a ticketCreate a ticket
Method sendRequest
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static boolean sendRequest(Connection conn, final String sql, final boolean suppressWarnings, final boolean fetchAdminInCase) {
boolean result = false;
boolean adminGathered = false;
try {
if (conn == null || conn.isClosed()) conn = getDBConnection();
- Create a ticketCreate a ticket
Method insertEstParamCorrs
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private void insertEstParamCorrs(int modelId, int estModelId, final int paramId, HashMap<String, Double> hm) {
try {
PreparedStatement ps = conn.prepareStatement("INSERT INTO \"GeschaetzteParameterCovCor\" (\"param1\", \"param2\", \"GeschaetztesModell\", \"cor\", \"Wert\") VALUES(?, ?, ?, ?, ?)");
Integer estParamId = DBKernel.getID("GeschaetzteParameter", new String[] { "GeschaetztesModell", "Parameter" }, new String[] { estModelId + "", paramId + "" });
ps.setInt(1, estParamId);
- Create a ticketCreate a ticket
Method stateChanged
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void stateChanged(ChangeEvent e) {
// Disable text field
m_workingDirectoryPanel.getComponent(0).setEnabled(false);
- Create a ticketCreate a ticket
Method actionPerformed
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == clearButton) {
for (int i = 0; i < ROW_COUNT; i++) {
table.setTime(i, null);
- Create a ticketCreate a ticket
Method getNameList
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static List<String> getNameList(PmmXmlDoc xml) {
List<String> names = new ArrayList<>();
for (PmmXmlElementConvertable element : xml.getElementSet()) {
if (element instanceof MiscXml) {
- Create a ticketCreate a ticket
Method testLoadSettings
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testLoadSettings() throws Exception {
NodeSettings nodeSettings = new NodeSettings("identifier");
nodeSettings.addString("volume", "volume");
nodeSettings.addString("volumeUnit", "volumeUnit");
- Create a ticketCreate a ticket
Method testAssay
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testAssay() throws Exception {
// Test assay at row 118
final Assay assay118 = importer.retrieveAssay(sheet.getRow(117));
- Create a ticketCreate a ticket
Method testConvertProduct
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testConvertProduct() {
Product product;
{
- Create a ticketCreate a ticket
Method testSaveSettings
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testSaveSettings() throws InvalidSettingsException {
ParametersSetting parametersSetting = new ParametersSetting();
parametersSetting.setVolume("volume");
parametersSetting.setVolumeUnit("volumeUnit");
- Create a ticketCreate a ticket
Function tokenString
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenString(quote, f) {
return function(stream, state) {
var ch;
if(isInString(state) && stream.current() == quote) {
- Create a ticketCreate a ticket
Function armv6
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function armv6(_parserConfig) {
// Reference:
// http://infocenter.arm.com/help/topic/com.arm.doc.qrc0001l/QRC0001_UAL.pdf
// http://infocenter.arm.com/help/topic/com.arm.doc.ddi0301h/DDI0301H_arm1176jzfs_r0p7_trm.pdf
lineCommentStartSymbol = "@";
- Create a ticketCreate a ticket
Function objprop
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function objprop(type, value) {
if (type == "async") {
cx.marked = "property";
return cont(objprop);
} else if (type == "variable" || cx.style == "keyword") {
- Create a ticketCreate a ticket
Function readQuoted
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readQuoted(quote, style, embed, unescaped) {
return function(stream, state) {
var escaped = false, ch;
if (state.context.type === 'read-quoted-paused') {
- Create a ticketCreate a ticket
Function tokenBase
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var tokenBase = function(stream, state) {
var next_rule = state.next || "start";
if (next_rule) {
state.next = state.next;
var nr = Rules[next_rule];
- Create a ticketCreate a ticket