Skip to content

Commit

Permalink
[Sonar] Fix blocking Sonar issues
Browse files Browse the repository at this point in the history
Change-Id: Id3abbe866a9cb434d8f7572914736d697cd95adb
Signed-off-by: Tu Ton <minhtutonthat@gmail.com>
  • Loading branch information
minhtutonthat authored and pdulth committed Jan 11, 2021
1 parent a7c9bb1 commit fcfd6cc
Show file tree
Hide file tree
Showing 8 changed files with 239 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public static List<AttributeSet> loadPropertiesFileAttributes(List<URI> properti
if (absoluteFilePath != null) {
File file = new File(absoluteFilePath);
if (file.exists()) {
try {
FileInputStream stream = new FileInputStream(file);
try (FileInputStream stream = new FileInputStream(file)) {
Properties properties = new Properties();
properties.load(stream);
String fileName = file.getName();
Expand All @@ -109,7 +108,6 @@ public static List<AttributeSet> loadPropertiesFileAttributes(List<URI> properti
childAttr.setSelected(selected);
}
result.add(attrSet);
stream.close();
} catch (FileNotFoundException ex) {
System.err.println(ex.getMessage());
} catch (IOException ex) {
Expand Down
34 changes: 34 additions & 0 deletions plugins/org.polarsys.capella.vp.requirements.model.cdo/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.addon.vp.requirements</artifactId>
<version>0.12.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.vp.requirements.model.cdo</artifactId>
<version>0.12.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>
34 changes: 34 additions & 0 deletions plugins/org.polarsys.capella.vp.requirements.model.edit/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.addon.vp.requirements</artifactId>
<version>0.12.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.vp.requirements.model.edit</artifactId>
<version>0.12.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>
34 changes: 34 additions & 0 deletions plugins/org.polarsys.capella.vp.requirements.model/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.addon.vp.requirements</artifactId>
<version>0.12.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.vp.requirements.model</artifactId>
<version>0.12.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>
34 changes: 34 additions & 0 deletions plugins/org.polarsys.kitalpha.vp.requirements.docgen/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.addon.vp.requirements</artifactId>
<version>0.12.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.kitalpha.vp.requirements.docgen</artifactId>
<version>0.12.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>
34 changes: 34 additions & 0 deletions plugins/org.polarsys.kitalpha.vp.requirements.model.cdo/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.addon.vp.requirements</artifactId>
<version>0.12.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.kitalpha.vp.requirements.model.cdo</artifactId>
<version>0.12.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>
34 changes: 34 additions & 0 deletions plugins/org.polarsys.kitalpha.vp.requirements.model.edit/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.addon.vp.requirements</artifactId>
<version>0.12.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.kitalpha.vp.requirements.model.edit</artifactId>
<version>0.12.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>
34 changes: 34 additions & 0 deletions plugins/org.polarsys.kitalpha.vp.requirements.model/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2020 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.capella.addon.vp.requirements</artifactId>
<version>0.12.0-SNAPSHOT</version>
<relativePath>../../</relativePath>
</parent>

<properties>
<sonar.skip>true</sonar.skip>
</properties>

<groupId>org.polarsys</groupId>
<artifactId>org.polarsys.kitalpha.vp.requirements.model</artifactId>
<version>0.12.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>

0 comments on commit fcfd6cc

Please sign in to comment.