Commits

Mathias Kluba  committed cfe3e1a

don't need to save the subproject, it should already be saved
---
.../dotnet/core/ProjectDependenciesSensor.java | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)

  • Participants
  • Parent commits 0304c58

Comments (0)

Files changed (1)

File sonar/sonar-plugin-dotnet-core/src/main/java/org/sonar/plugin/dotnet/core/ProjectDependenciesSensor.java

 
 				// find the referenced project in the Maven modules
 				Resource<?> subProject = VisualUtils.getProjectFromName(project,
-						vsProject.getAssemblyName());
-				
-				Resource<?> savedSubPrj = context
-						.getResource(subProject);
-				if (savedSubPrj == null) {
-					context.saveResource(subProject);
-					savedSubPrj = context.getResource(subProject);
-				}
-				subProject = savedSubPrj;
+						vsProject.getAssemblyName());				
 
 				// resolve project references
 				List<ProjectReference> projectReferences = vsProject