Last active
June 6, 2018 11:49
-
-
Save Lokutus/9748637 to your computer and use it in GitHub Desktop.
Spaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Product getProduct(String productId) { | |
Product product = null; | |
Asset asset = getAsset(Product.TYPE, productId); | |
if (asset != null) | |
product = new Product((ProductService) service, asset); | |
return product; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Product getProduct(String productId) { | |
Product product = null; | |
Asset asset = getAsset(Product.TYPE, productId); | |
if (asset != null) | |
product = new Product((ProductService) service, asset); | |
return product; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment