raphaelts3 / wyd2encdec

Empty catch clauses may hide exceptions JAVA-W0052
Anti-pattern
Major
2 years ago2 years old
Empty catch blocks can hide exceptions
 91            FileOutputStream fileStream = new FileOutputStream(file);
 92            fileStream.write(buffer);
 93            fileStream.close();
 94        } catch (Exception e) { 95        } 96    }
 97
 98    public static long readData(String filePath, boolean encrypted, List<MsgHeader> packets) {
Empty catch blocks can hide exceptions
149                    key++;
150                } while (j < packet.size_);
151                offset += j;
152            } catch (Exception e) {153            }154        }
155    }
156
Empty catch blocks can hide exceptions
185                    key++;
186                } while (j < packet.size_);
187                offset += j;
188            } catch (Exception e) {189            }190        }
191    }
192}