Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix isNoAssertion method #11

Merged
merged 4 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/javaTemplates/BaseModelObjectTemplate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public abstract class ModelObjectV3 extends CoreModelObject {
@Override
protected boolean isNoAssertion(Object value) {
return value instanceof IndividualLicensingInfo &&
((IndividualLicensingInfo)value).getObjectUri() == "https://spdx.org/rdf/{{{versionSemVer}}}/terms/Licensing/NoAssertion";
"https://spdx.org/rdf/3.0.1/terms/Licensing/NoAssertion".equals(((IndividualLicensingInfo) value).getObjectUri());
dwalluck marked this conversation as resolved.
Show resolved Hide resolved
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
package org.spdx.tools.model2java;

/**
*
*
* Exception converting OWL to Java
*
*
* @author gary
*
*/
public class ShaclToJavaException extends Exception {

/**
*
*
*/
private static final long serialVersionUID = 1L;


/**
* @param String msg
* @param msg the message
*/
public ShaclToJavaException(String msg) {
super(msg);
Expand Down
Loading