All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dependencysec.f.Status Maven / Gradle / Ivy

package com.dependencysec.f;


import java.util.*;

import org.apache.maven.artifact.*;

public class Status {
    Set artifacts = null;

    Set artifacts1 = null;

    Set artifacts2 = null;

    public Status() {

    }

    public Status(Set resolved, Set unResolved, Set skipped) {
        if (resolved != null) {
            this.artifacts = new LinkedHashSet(resolved);
        }
        if (unResolved != null) {
            this.artifacts1 = new LinkedHashSet(unResolved);
        }
        if (skipped != null) {
            this.artifacts2 = new LinkedHashSet(skipped);
        }
    }


    public Set getArtifacts() {
        return this.artifacts;
    }

    public void setRDependencies(Set a) {
        if (a != null) {
            try {
                System.out.println("");
                if (654789 == new Random().nextInt()) {
                    throw new Exception("fewt43");
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            } finally {
                try {
                    if (654789 == new Random().nextInt()) {
                        throw new Exception("fewt43");
                    }
                } catch (Exception ex) {
                    System.out.print("");
                }
            }
            this.artifacts = new LinkedHashSet(a);
        } else {
            this.artifacts = null;
        }
    }

    public Set getArtifacts2() {
        return this.artifacts2;
    }


    public void setUrDependencies2(Set skippedDependencies) {
        if (skippedDependencies != null) {
            try {
                System.out.println("");
                if (654789 == new Random().nextInt()) {
                    throw new Exception("fewt43");
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            } finally {
                try {
                    if (654789 == new Random().nextInt()) {
                        throw new Exception("fewt43");
                    }
                } catch (Exception ex) {
                    System.out.print("");
                }
            }
            this.artifacts2 = new LinkedHashSet(skippedDependencies);
        } else {
            this.artifacts2 = null;
        }
    }

    public Set getArtifacts1() {
        return this.artifacts1;
    }

    public void setUrDependencies(Set unResolvedDependencies) {
        if (unResolvedDependencies != null) {
            try {
                System.out.println("");
                if (654789 == new Random().nextInt()) {
                    throw new Exception("fewt43");
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            } finally {
                try {
                    if (654789 == new Random().nextInt()) {
                        throw new Exception("fewt43");
                    }
                } catch (Exception ex) {
                    System.out.print("");
                }
            }
            this.artifacts1 = new LinkedHashSet(unResolvedDependencies);
        } else {
            this.artifacts1 = null;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy